Log In  


Cart #jumperjump-0 | 2024-02-01 | Code ▽ | Embed ▽ | No License
3

Some school project that needs some work on (Im very new to coding and pico-8!)

I still have yet to know how to add coins or enemies within the game

so please if you have any advice feel free to pitch in any ideas to help!

3


Really need to add a death mechanic but i still don't really know how to implement it!


Create a variable like "is_dead" or "game_over" to the character, create a function for setting the variable and displaying the game over screen or respawning the player. And add collisions (like when touching an enemy or the character is beyond the screen) that would call that function.

Sorry for bad English :P


@notcl4y thanks! I'll try and code it in if I can. When I create a function should I also give it an INIT function so when the game starts the enemy would spawn right in? Thanks again though!


Well, the function for creating enemies would be ofc better calling in the _INIT function. So if the function is in another tab PICO-8 would detect it.

And also np! :D



[Please log in to post a comment]