Hi, im learning Pico8 and i think its so coll, sorry for my poor english.
Im triying to make something like classic arcade game, the problem is i dont know how to make my char climb the 4 ladders.
im so happy and excited to learn more, i posted this because im stuck for 4 days trying a lot of things but didnt work for me.
Every little step is a big step for me.
thank you ^^
Hello!
I tried to make the floor hold the character but i dont know how to make it with a big sprite like this, same problem happened to find the way to make the character move and animate with more than an 8x8 sprite.
Anyway i dont know why doesnt work if i put on the controls another "or ply.x==80 and btn(3)"
I will keep triying to learn how to make the collide for big sprites.
thank you ^^
To prevent the player from climbing where there isn't a ladder, you need to check whether or not they're on a ladder tile. The current code seems to allow the player to climb whenever up or down is pressed.
Also, it's usually good to "snap" the player to be perfectly aligned to the ladder when they start climbing. For example, if the player begins climbing when their left edge is four pixels to the left of the left edge of the ladder, move the player four pixels to the right so they're perfectly aligned to the ladder tiles. This way, they won't get stuck on a solid at the top of the ladder.
Also also, most games treat the tops of ladders as a floor tile; when the player walks on them, they act like a normal floor, but if the player presses down while on them, they begin to climb down the ladder. This is typically done by treating ladder tiles as floor tiles for collisions from above, but not for collisions from below.
Hi @xeif.
If it makes it simpler, think of it as a topview game. The only way you can travel NORTH (or up if that makes better sense) is on a ladder.
Any empty space or pressing DOWN on a ladder, think of it as pushing down or South on the player.
That's it. If you do that you won't need to worry about gravity.
[Please log in to post a comment]