How do I destroy an object after 2+ mouse clicks?

Get help using Construct 2

Post » Sun Apr 09, 2017 2:17 pm

Hello, I'm trying to destroy an object with more than one mouse click. How would I go about doing this? Would I have to set up a HP system for chests and have each click subtract from that, destroying the chest after HP reaches less than or equal to 0? Thanks for any replies.
B
6
Posts: 2
Reputation: 254

Post » Sun Apr 09, 2017 2:43 pm

Basically.. by hit point system you are referring to a variable system.

You will need a variable that is incremented each time the object is clicked and a test condition that compares the variable value and destroys if >= to your chosen #.
Check out my completed games on the Arcade! Capt. Doe Save the Universe! & Clicker Wizard!
B
65
S
17
G
8
Posts: 636
Reputation: 9,333

Post » Sun Apr 09, 2017 4:11 pm

This worked perfectly, thanks.
B
6
Posts: 2
Reputation: 254


Return to How do I....?

Who is online

Users browsing this forum: ladjuric, plinkie, Syazanie Amirin and 3 guests

cron