Help collision with another object
MFA: loopcollision.zip
When the object that sets a fast loop collides with another object, add 1 to alterable value.
However, an increase in the value is repeated while the object is overlapping.
How can I increase the value only when the object collides?
Re: Help collision with another object
Maybe: Only one action when event loops
Marv
Re: Help collision with another object
Quote:
Originally Posted by nivram
Maybe: Only one action when event loops
When the object overlapped, the value is added only to one if the condition is added.
How can I add 1 to alterable value to all objects that overlapped?
Re: Help collision with another object
You will have to make two events, one that spreads a value in them, and another that starts a loop to look at each of them. Two important notes! Clear all values with an always event BEFORE the collision events. And the fast loop event MUST be in a separate event from the spread value event.
Re: Help collision with another object
The value keeps increasing while the object is overlapping though I had a separate value used by spread value and the collision.
How should I do so that only add 1 value to all the other party objects when the object collides with a fast loop used?
Re: Help collision with another object
Add an only one event on loop to the end of the fast loopand collision event.
Re: Help collision with another object
You could set a flag to ON when the collision happens and have a "Is Flag OFF" condition with your collision check.
Re: Help collision with another object
Quote:
Originally Posted by mobichan
You could set a flag to ON when the collision happens and have a "Is Flag OFF" condition with your collision check.
That won't work because
Quote:
Originally Posted by ASD
How can I add 1 to alterable value to all objects that overlapped?