Reduce bullet speed on impact

Get help using Construct 2

Post » Sun Oct 20, 2013 10:43 pm

If I have a projectile with the bullet behavior and I want to reduce it's speed by say 10% anytime it collides with an object how would i do it?

I'm basically throwing a rock in a platformer game, and this is the only object in the game with any sort of physics.
B
4
Posts: 3
Reputation: 206

Post » Sun Oct 20, 2013 11:26 pm

rock on collison with object - set rock bullet speed to rock.bullet.speed*0,9
this?
Visual Novel 'Engine' in 100 Events
if you ever have to choose between buying Construct 2 on scirra.com or on Steam, read this: Review
B
22
S
9
G
1
Posts: 788
Reputation: 3,788

Post » Sun Oct 20, 2013 11:40 pm

Would that work on all solid objects, or would I have to set that for each object it could collide with?
B
4
Posts: 3
Reputation: 206

Post » Mon Oct 21, 2013 7:06 am

@drstark, you would need to set up events for each object the rock would collide with. I suggest you use families. Put all the objects you want to throw the rock at in the family, and then you can just create a single event for when the rock collides with the family. In case you are not aware, families are in the licensed versions only.
B
13
S
4
Posts: 67
Reputation: 1,270


Return to How do I....?

Who is online

Users browsing this forum: brunopalermo, MadSpy and 33 guests