Bacon's method worked, but thanks for the help guys.
Here's the events that change the player's health for reference.
It hasn't changed anything. Am I missing something?
I've programmed a health instance variable to allow my player character to take multiple hits from enemies before keeling over, alongside items to refill his health. The problem I'm having is making sure he cannot reach higher than say, 3 Health.
Develop games in your browser. Powerful, performant & highly capable.
Managed to work out with the help of whoever replied to this post
I'll give it a shot
The player just has to reach the end, and the level's on one layer
Thanks, managed to get it to work.
I haven't found anything pertaining to programming an object that ends the level and either sends you to the next level or to a menu. Any help would be greatly appreciated.
BTW, how would I program a separate hitbox for the attack to hit without my character being forced to take contact damage?
Thanks, I managed to get it all working as intended. I appreciate the help.
I've followed what you've said, now I need to program a hitbox for it. I tried setting the game to destroying the enemy I've put together, but as I found out, it killed every last one in the level.
Member since 14 Jun, 2020