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?
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 :)
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!
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?
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.
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!
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.
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!
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.
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