Page 1 of 1

HELP in substract Variavel '-'

PostPosted: Mon Mar 27, 2017 10:16 pm
by jpstudio
HELP!
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.

http://bit.ly/2nZz33x

Re: HELP in substract Variavel '-'

PostPosted: Tue Mar 28, 2017 1:28 am
by chrisinfinger
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...