else with collisions

Get help using Construct 2

Post » Mon Oct 28, 2013 4:36 am

hi gang
why is the "else" and the "invert" disabled with the "collision with" condition? and therefore how does one create an action that changes a behavior after the collision has happened and is no longer happening?

for example, I want to change the friction value of an object when it collides with another object, but after it is no longer touching, I want the friction to go back to the previous value...
thanks!!
Dan
B
8
S
3
G
1
Posts: 87
Reputation: 1,493

Post » Mon Oct 28, 2013 4:52 am

[QUOTE=danno55] hi gang
why is the "else" and the "invert" disabled with the "collision with" condition? and therefore how does one create an action that changes a behavior after the collision has happened and is no longer happening?

for example, I want to change the friction value of an object when it collides with another object, but after it is no longer touching, I want the friction to go back to the previous value...
thanks!!
Dan
[/QUOTE]

A colision is true only the moment it collide, so an else can't be used here, in your case, I think you could:

On collision -> change friction
Is NOT overlapping, Trigger once while true -> change back friction to normal

I can't ensure that it'll work
Game design is all about decomposing the core of your game so it becomes simple instructions.
B
53
S
22
G
18
Posts: 2,122
Reputation: 17,123


Return to How do I....?

Who is online

Users browsing this forum: nahima and 7 guests