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.

(RESOLVED) Timing Help

I need help in something in my game. It happens like this. The player is escaping out of somewhere, and has to try avoid guards. If he gets caught (seen) the guards will chase him. What i want is when the guard touches the player (Event Touch) the player has a chance to 'kill' the guard before the guard attacks. Something to do with Timers. Something like when the guard touches the event:
Control Timer: Startup (0min. 3sec)
Condtional Branch: The C button is pressed
Show Animation: Guards, [Attack 1]
Erase Event

Condtional Branch: Timer 0 min, 0 sec or less:
Battle Processing: Guards

Something like that, when the guard touches you, you have to press 'C' fast (within 3 seconds) to quickly kill the guard before he can attack you. If you fail the press 'C' and its after 3 seconds, you enter the battle. What i've done doesn't work for me, so i'm asking if anyone could help me get this to work. Any help would be greatly appreciated. Thank you in advanced.
 
What you've done should work. I think your prob is, actualy, is that bottom C doesn't really mean you need to press the bottom C.
I'm not sure exactly, but I know that bottom X is being pressed=A. Not sure about the other, you can test which one of them is C.
EDIT: In playtest, you can press F1 to modify the controls. Also, try to change delete event to control self switch.
 
Wow i've somehow managed to figure this out by myself. I had to change something because what I did before involved the timer that kept staying at 0:02 and never went down. Well i managed to fix it with some switches and its now working. Thanks, Muffins .org, if you didn't say that I probably wouldn't have figured it out. (I tried other events and testing to see if it works, and lost my first events. (This one) I thought it was to simple to work, guess I was wrong.) Well I better make this resolved. (How do I change my Thread's name again?
 

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