Bounce off solids

Get help using Construct 2

Post » Wed Mar 27, 2013 11:45 am

Hi,

Using the bullet behavior, there is a property called "bounce off solids". It works well for what I need. However, I need the main character (platform) to bounce too when the bullet object collides with it.

Is there a way to do that?

B
85
S
31
G
23
Posts: 384
Reputation: 19,092

Post » Wed Mar 27, 2013 11:57 am

Bullet Object on collision with Main Character > Platform: Simulate Control Jump

Or what do you mean? Like you want your main character to bounce off of solids like the bullets?
B
17
S
5
G
2
Posts: 86
Reputation: 4,343

Post » Wed Mar 27, 2013 2:51 pm

Yes. I need the player (main character) to be thrown back if the object collides with him. Like getting shot
B
85
S
31
G
23
Posts: 384
Reputation: 19,092

Post » Wed Mar 27, 2013 2:55 pm

maybe: get bullet angle, add bullet angle to player position?
B
18
S
5
G
4
Posts: 568
Reputation: 5,079

Post » Wed Mar 27, 2013 2:55 pm

Make an event that sets the platform object's Vector X and Vector Y on collision and you'll get a knockback/bounce.
B
27
S
8
G
8
Posts: 903
Reputation: 8,452

Post » Wed Mar 27, 2013 2:58 pm

Here is one old example which has similar behavior:

Gun example
B
24
S
8
G
7
Posts: 756
Reputation: 7,202


Return to How do I....?

Who is online

Users browsing this forum: R0J0hound, tatogame and 27 guests