How do I make a reaction game

Get help using Construct 2

Post » Sat Nov 08, 2014 6:28 pm

So basically what I am trying to do is something like this:
https://play.google.com/store/apps/deta ... .halloween
This is how far I got
Image
Basically, at the first click the game starts and choose a random time from 2 to 4 seconds, after that the mouth start closing and if it touches you , you lose. What I can't figure how to do is making a score system(how do I make to add 1 point every time it didn't catches you) and how to make it restart (so it is ready to play again). I tryed reseting the variables.

Infos:
play=0 : not playing
play=1 : you started the game and the game has began
play=2 : it starts moving the mouth
play=3 : the mouth has fully closed

gameover=0 : you are playing
gameover=1 : mouth is opening again
B
14
S
3
G
1
Posts: 69
Reputation: 950

Post » Mon Nov 17, 2014 11:01 am

There are many missing things as i see. You should think them step by step.

First starting condition: I suggest you a countdown or something to make player understand that game begin.

After your random waiting time finishes jaw (upper_part) of your monster will move downward as defined Y speed as i understand. Instead of that i suggest you to use animating the monster and define the animation speed.

Anyway, not sure if your "Game Over" system is working so i assume it is working.

So in this case you show C2 how to "lose" the turn but not "win" it. In your example again, you can set an end Y coordinate to Jaw of monster. For ex:

When 'any touch end' while 'play=2 and upper_part.Y < 700' than there is a "Win". So in "Win" condition you can add +1 to score and restart the game. Don't forget to set necessary variables to their defaults while restarting the game.

But in this case you will face with other problems. You have to find out them without quiting. When you solve them you will see how simple they were. That will improve your game designing logic.

Hope it will help you. Btw no need to set the score every thick. Once per round start will do fine. Reaction games need lowest usage of system resources to REACT better.
B
21
S
4
G
4
Posts: 161
Reputation: 3,803


Return to How do I....?

Who is online

Users browsing this forum: Exabot [Bot], Lancifer, nahima and 11 guests