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!

P#140966 2024-02-01 04:34

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

P#140967 2024-02-01 04:36

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

P#140977 2024-02-01 12:36

@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!

P#140980 2024-02-01 12:53

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

P#140991 2024-02-01 15:18

[Please log in to post a comment]