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.
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.
Develop games in your browser. Powerful, performant & highly capable.
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.
I'm trying to program a melee attack in my platformer that I'm working on, and I'm having the hardest time figuring out how to do it