Log In  
Follow
gigs

I like to code


So I know the documentation is a bit spotty at the moment but I was curious if the btn() function is the same as in P8?
I set up a simple sprite to move around and used the usual btn() setup for up down left and right but am getting weird behavior. Sometimes when I press left or right it will go up, or go diagonally randomly.
Sometimes it will work perfectly normal.

Anyone else experience this?

4 comments



Been seeing some amazing things in Pico-8 lately and want to try my hand at some basic 3d. Can someone point me in the right direction for learning?
Thanks! <3

1 comment



Been getting interested in neural networks and machine learning lately and recently discovered this:https://github.com/vbrydik/pico-nn

On the GitHub page it says to "Just copy code from here and use it in pico-8 or other lua app."

I know I can't just copy it into a p8 cart because the code it references isn't in my cart.

What would be the correct way to implement this?

Thanks :)

2 comments



Hey all,

Been having this issue where P8 will suddenly close usually when I am editing code on Sublime Text. Seems to happen after about ten minutes or so. Anyone else experiencing this?

On Windows 10.

I'll update if I notice any patterns.

1 comment



Stepped away from P8 for a while so I find myself a bit confused about the draw and update behavior.

I am trying to make a game where pieces fall and I am using cicfill to create these.

function build_pill(x,y,color,y2,color2)
	radius=2.2
	x2 = x - 3

	pill={circfill(x,y,radius,color),
				circfill(x2,y2,radius,color2)
		}
		add(pills,pill)

		return pill
end

I call it in update:

function _update()
	cls()
	build_pill(30,30,5,30,9)

end

The cls() function keeps erasing my object. However when I remove the cls() function the screen doesnt look right either.

SO

When is the right place to put the cls() and still be able to draw my shapes?

Thanks!

2 comments



Was looking through the api on https://neko250.github.io/pico8-api/ and I noticed the command gui_theme. It seemed to be something I enter in the splore console but does't work. Is there a correct way to use this? Has it been deprecated?

5 comments



Cart #56636 | 2018-09-14 | Code ▽ | Embed ▽ | No License

So this is a followup to a thread I made a few days ago about having trouble parsing a table that has multiples of the same piece.
In this example I am trying to select either piece (which will be indicated by an arrow) but as you will see it only works for one.

2 comments



So apologies if this has been asked before,

I am looking to build a sentence with random strings that will be stored in a table.

For example:

    text = {}

names = {"a", "b", "c"}

name = names[rnd(2)] <-- doesn't work :(

foo = {
str = "Hi my name is" .. name
}
Everything I have found is in the Non P8 version of Lua.

8 comments



Hi P8 community,

I am looking to embed some of my games onto a portfolio site I built using Github pages and am not sure how to embed the player without just linking to it on a separate view.
I am certain this can be done as I have seen games on Itch and the like.
I'm sure its easy and I'm just forgetting some basic HTML thing.

Anyone?

Thanks!

2 comments



Hey P8 fam,

Got a weird thing happening with my game and am having trouble finding anything on this, What is happening is on my map editor I am seeing sprite formations that I did not put there and when I try to remove some of them I see a glitching effect on some of the sprites I did place intentionally when I run the game.
Does that make sense?

Does this have to do with the 128 sprite limit? Didn't think I hit it.

Happy to answer any questions, thanks.

5 comments



by gigs
Cart #46336 | 2017-11-15 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA


Hey all so I posted a cart so you can see what I am facing here:

I have the town with buildings that have collision coded into them with the doors coded to take the player to another room which is admittedly hacked together.
What happens is the player is then transported(sorta) to a new location - yet when I move him around in the 'new' zone there seems to be residual collision code which prevents total freedom of movement for the player.

Any better ways to go about this? I want the player to enter the brown zone and be able to freely move around at will.

Thanks!

8 comments



Hello Pico 8 fam,

Been working on a game that is something of a Final Fantasy clone and I am trying to implement different rooms for the player to enter. I am stumped with how to get this going and was wondering if there were any good resources available for me to dig into.

I need a blank slate each time I enter a room.

1 comment




0 comments



Hey everyone,

I recently purchased Pico-8 and am loving it. I am breezing through the few tutorials there are on the internet and am starting to wonder how many of you have implemented physics engines to handle things such as gravity and the like.
I have been looking at other people's code and getting a bit of a clue but am feeling a little overwhelmed :<.

Any resources would be great as I want to learn how to do this for real so I can grow as a developer.

Thanks!

Edit: Just looking for something simple how when the player jumps, to have him come back down

2 comments