How do I Make a player loss lives when mouse click failed ?

Get help using Construct 2

Post » Mon Mar 31, 2014 7:24 pm

Hello,

I'm new to Construct 2 and from Game Maker/Multimedia Fusion, i'm trying to recreate a game i made for Android in Game Maker, but i have some trouble with one thing.

When the player click/tap on a sprite is destroyed & a new instance of the sprite is created, and i try to make that if the player fail to click on the object, a live is loss.

Thank's for you help!
B
2
Posts: 8
Reputation: 166

Post » Mon Mar 31, 2014 7:35 pm

You can do something like:

Code: Select all
Touch --> On any touch start
        Touch --> (Invert) Is touching "your object"
                 deduct a life from the player
Last edited by cvp on Mon Mar 31, 2014 7:46 pm, edited 1 time in total.
B
20
S
6
G
4
Posts: 347
Reputation: 4,451

Post » Mon Mar 31, 2014 7:41 pm

Thank's for the quick answer.

It won't let me Invert the event. He put it in grey.
B
2
Posts: 8
Reputation: 166

Post » Mon Mar 31, 2014 7:45 pm

something like this
B
20
S
6
G
4
Posts: 347
Reputation: 4,451

Post » Mon Mar 31, 2014 7:57 pm

Oh, yeah, it was simple ^^

It worked, thank's !
B
2
Posts: 8
Reputation: 166

Post » Tue Apr 01, 2014 4:11 pm

Hi again, it seems like i have some little trouble now :

1/ When the game stop and i click everywhere it keep lossing lives.

2/ My Lives variable, upon i reset the layout is set to 2 instead of three.

It seems like the problem is from my On Any Touch Start action. But i have no clue how to fix that.

Thank's again for your answer, here is my event.
You do not have the required permissions to view the files attached to this post.
B
2
Posts: 8
Reputation: 166


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 13 guests