Platformer bounce

Get help using Construct 2

Post » Tue Oct 25, 2011 2:20 pm

Hi

Can I somehow get my Platform - Sprite
to bounce off .. while jumping
lets say change direction on collision

Easy with a bullet behavior
But that I cant get to work combined with my Platform - Sprite

/cheers

B
22
S
12
G
10
Posts: 322
Reputation: 7,353

Post » Tue Oct 25, 2011 6:12 pm

You can do something simple like this:

Sprite - On collision with (something)
>> Set vector X - Sprite.Platform.VectorX * -1

Or vector Y instead of you want the bounce to be vertical. This takes the platform object's horizontal speed (or vertical if Y) and sets it to the opposite direction, which is essentially what bouncing is!
B
20
S
9
G
6
Posts: 607
Reputation: 6,112

Post » Wed Oct 26, 2011 9:19 am

Thanks .. worked out fine
B
22
S
12
G
10
Posts: 322
Reputation: 7,353


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 17 guests