Whack a mole.....

Get help using Construct 2

Post » Sun Feb 26, 2012 9:54 pm

Hello again brain trust! lol......

I'm working on a little whack a mole game to play with the C2 features, but my question today is -- "How do I make the game penalize you for missing a mole?"

My guess is there must be some condition set on the Sprite level that lets the game know the animation was played all the way through?

I'll post if I figure it out, in the mean time any and all help would be awesome!

Great program so far btw.
B
12
S
2
Posts: 75
Reputation: 2,126

Post » Mon Feb 27, 2012 3:33 am

It depends on how you implement your game.
But let say you have hole sprites and mole sprites that randomly spawns over the hole sprites, stay for like 0.5 second, and gets destroyed afterward.
Then you can do somthing like

[code]Mouse: on click on hole
Mouse: is over mole
    -> System: add 1 to score
Mouse: [invert] is over mole
    -> System: substract 1 from score[/code]Yann2012-02-27 04:11:57
B
60
S
22
G
14
Posts: 1,479
Reputation: 16,346

Post » Mon Feb 27, 2012 11:42 am

There is an event called "sprite.on finished" which triggers when an animation has come to an endWeishaupt2012-02-27 16:20:57
B
42
S
19
G
12
Posts: 723
Reputation: 13,911

Post » Mon Feb 27, 2012 3:56 pm

Thanks guys! Weishaupt's post was more along the lines of what I was looking for Yann, but I can see places to use your post too. Thanks again.
B
12
S
2
Posts: 75
Reputation: 2,126


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 20 guests