How do I make bouncing of solids for platform behaviour

Get help using Construct 2

Post » Thu Mar 23, 2017 4:51 pm

Message: artheads can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
Hi there, I'm trying to make my "player" sprite with platform behaviour, to bounce of the objects with solid behaviour when it collide it from left/right or bottom, and the other sprites "enemies" with platform behaviour also. But I have no idea how to implement it. I've attached my scetch in .CAPX

www.dropbox.com/s/v2x6iux376h3m75/scetch.capx?dl=0
B
9
S
3
G
1
Posts: 40
Reputation: 1,687

Post » Thu Mar 23, 2017 5:37 pm

When they collide you can simulate jump and set the angle of the jump which looks like a bounce.

On Player collison with Object: Simulate player Jump, Set angle whatever.
Banned User
B
27
S
7
G
58
Posts: 1,229
Reputation: 34,790

Post » Thu Mar 23, 2017 7:27 pm

lamar wrote:When they collide you can simulate jump and set the angle of the jump which looks like a bounce.
On Player collison with Object: Simulate player Jump, Set angle whatever.


Thanks it's really helps, I've implemented such relationships with solids, but how to bounce of other sprites with platform behaviour?
B
9
S
3
G
1
Posts: 40
Reputation: 1,687

Post » Thu Mar 23, 2017 8:19 pm

artheads wrote:
lamar wrote:When they collide you can simulate jump and set the angle of the jump which looks like a bounce.
On Player collison with Object: Simulate player Jump, Set angle whatever.


Thanks it's really helps, I've implemented such relationships with solids, but how to bounce of other sprites with platform behaviour?


Same way- they will still register a collision. You may want to make both platform objects jump if they are moveable objects.
Banned User
B
27
S
7
G
58
Posts: 1,229
Reputation: 34,790

Post » Thu Mar 23, 2017 8:44 pm

lamar wrote:
artheads wrote:
lamar wrote:When they collide you can simulate jump and set the angle of the jump which looks like a bounce.
On Player collison with Object: Simulate player Jump, Set angle whatever.


Thanks it's really helps, I've implemented such relationships with solids, but how to bounce of other sprites with platform behaviour?


Same way- they will still register a collision. You may want to make both platform objects jump if they are moveable objects.


But objects with platform behaviour can jump only on solid floors isn't it? Anyway sprites with platform behaviour doesn't jump of each other...
B
9
S
3
G
1
Posts: 40
Reputation: 1,687

Post » Thu Mar 23, 2017 9:08 pm

Same way- they will still register a collision. You may want to make both platform objects jump if they are moveable objects.[/quote]

But objects with platform behaviour can jump only on solid floors isn't it? Anyway sprites with platform behaviour doesn't jump of each other...[/quote]

You can if they have the solid behavior but how are you using more than one platformer object in your game?

If you have more than one platformer they will all respond to movement controls?

Your questions asked how to bounce solids. Solids are not a platformer with movement behaviors but platformers can also be solids.

So I would have to see your capx to see what you are doing?
Banned User
B
27
S
7
G
58
Posts: 1,229
Reputation: 34,790

Post » Thu Mar 23, 2017 11:02 pm

lamar wrote:You can if they have the solid behavior but how are you using more than one platformer object in your game?
If you have more than one platformer they will all respond to movement controls?
Your questions asked how to bounce solids. Solids are not a platformer with movement behaviors but platformers can also be solids.
So I would have to see your capx to see what you are doing?


yes, I've attached capx with starter message, but I'll repeat it here: dropbox.com/s/v2x6iux376h3m75/scetch.capx

So, I have 1 platformer object as a player with non default controls, and another platformer object as enemy that is controlled by events.
B
9
S
3
G
1
Posts: 40
Reputation: 1,687

Post » Thu Mar 23, 2017 11:14 pm

artheads wrote:
lamar wrote:You can if they have the solid behavior but how are you using more than one platformer object in your game?
If you have more than one platformer they will all respond to movement controls?
Your questions asked how to bounce solids. Solids are not a platformer with movement behaviors but platformers can also be solids.
So I would have to see your capx to see what you are doing?


yes, I've attached capx with starter message, but I'll repeat it here: dropbox.com/s/v2x6iux376h3m75/scetch.capx

So, I have 1 platformer object as a player with non default controls, and another platformer object as enemy that is controlled by events.


Make the enemy also have the solid behavior and you can jump off or bounce off them.
Banned User
B
27
S
7
G
58
Posts: 1,229
Reputation: 34,790

Post » Thu Mar 23, 2017 11:54 pm

lamar wrote:Make the enemy also have the solid behavior and you can jump off or bounce off them.


Thanks mate, it works like a charm now!
B
9
S
3
G
1
Posts: 40
Reputation: 1,687


Return to How do I....?

Who is online

Users browsing this forum: dop2000, gonzdevour and 36 guests