How do I make bouncy enemies

Get help using Construct 2

Post » Mon Dec 15, 2014 1:27 pm

I'm trying to program enemies that bounce when you hit them, go different distances depending on the strength of the hit, and when they come to a stop, they get up and keep moving. I'm using the pre-installed platform template and experimenting. So far I have the enemy sprite programmed with only a platformer and bullet behavior, when the player sprite collides with it, the bullet behavior is enabled and it's angle is set at random between 90 and 45 degrees and its gravity to 1500. It does bounce but now I'm trying to figure out how to decelerate it so it comes to a stop.

I would really like advice, especially if there's a better means of creating this certain effect.
B
7
S
1
Posts: 10
Reputation: 445

Post » Mon Dec 15, 2014 3:58 pm

The bullet behavior has an "Acceleration" property, specified in pixels per second. Setting this to a negative value will cause the bullet to decelerate over time. I would suggest looking at that.
Moderator
B
113
S
41
G
20
Posts: 1,586
Reputation: 19,106


Return to How do I....?

Who is online

Users browsing this forum: AekiroStudio, Linetaru and 8 guests