HELP in substract Variavel '-'

Get help using Construct 2

Post » Mon Mar 27, 2017 10:16 pm

Message: jpstudio can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
I need a little help from the staff ^^

I have a problem with my project that is like this
When my character destroys an object it gives -1 in the variable when it has 2 of the same object and it destroys the 2 the construct2 set my variavel in -2
  BUT I wanted it to destroy the 2 objects that are clones and subtract only 1 point from the variable
I am not able to explain my idea correctly if someone does not understand us, we exchange an idea via inbox or in the coments
I'm going to post here a .Capx of an event model I'm using.
Posts: 31
Reputation: 414

Post » Tue Mar 28, 2017 1:28 am

How do you create the objects... ie. do you decide how many will appear of a certain type?
If you do or even if random all you need to do is store the number created in a separate variable and subtract one from the variable each time one is destroyed.. when that variable=0 then give player the -1 score...
Check out my completed games on the Arcade! Capt. Doe Save the Universe! & Clicker Wizard!
Posts: 664
Reputation: 10,333

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 2 guests