Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Having event troubles.

Alright, i'm looking for a Battle event.
Since i am making a horror game i of course don't want a pop up battle.
What i would like to do is make an event where the player has 3 lives, and everytime the event touchs them it subtracts 1 life til it reaches zero, and you get a gameover.

I've tried MANY times to get this but can't.
It automatically skips to the game over...

So i would hope one of YOU could maybe make an event that i just described and whip up a screenshot of it,
so i can copy it.
I WILL give FULL credit t YOU.

This is very important, and i need it as soon as possible. Thank you! :biggrin:
 
What's happening is that RMXP processes so quickly that in the split second your character is touched by the enemy, it registers that touch all 3 times.

What you might be able to try is just putting in a 'wait'' command after modifying the variable you're using to count hits. Like wait 5 frames or so to give the player a quick chance to get away and avoid what the game thinks is a second touch.
 
You should also use a new page. Turn on self-switch A after modifying the variable, and make a new page with that Condition. Set it to Parallel Process, "wait" about 10-20 frames and then turn self-switch A off.
 
Try something like this:

eventb.png

You can also use real HP instead of a variable. Just remember to set it to 3, or however many lives you want the player to have. Also, feel free to add animations or sound effects on the first page, for when the enemy hurts the player.
 
By the way, i'm using VX. Didn't mention it sorry.
Does that change anything?
Because when i do all the things you did it dosen't do anything it just touches the character and thats it.
 
VX shouldn't be any different, the only things would be slightly different wordings for commands.

Have you set the Player HP variable to 3? You can do so in a different Parallel Process or Autorun event at the beginning of the game. Or you can try the HP method, where you subtract the player's HP instead of the variable (you'll still need to set a variable to player's HP to check in the Conditional Branch). Also I would suggest an animation so you know if the player got hurt.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top