Question for platform behavior expert

Discussion and feedback on Construct 2

Post » Wed Dec 28, 2016 7:11 pm

Hello, I want to emulate this control that appears in the video:

https://www.youtube.com/watch?v=74HLnyQzuEc

In the control of the video there is no physics in the jumps.
However, in the behavior platform there is physical (gravity) and I think it can not be disabled.

The question is:
Could you use platform behavior to emulate the control of the video character?
Or should I emulate it without using platform behavior?
B
29
S
12
G
21
Posts: 783
Reputation: 14,417

Post » Wed Dec 28, 2016 7:24 pm

You want to be able to sort-of float, and fall more slowly?
B
61
S
20
G
56
Posts: 1,077
Reputation: 35,986

Post » Wed Dec 28, 2016 7:25 pm

Using the platform behavior allows you to set various parameters including the jump strength of your character and the gravity's influence on him. According to what I see in the video I'm pretty sure you can make a similar thing with the platform behavior if you adjust the said parameters correctly.
B
16
S
4
Posts: 86
Reputation: 1,525

Post » Wed Dec 28, 2016 8:11 pm

Okay, I'll try, I'm not sure it's possible.

Another question, I think the sprite should fall into the gap but it does not.

What is your opinion?.

https://dl.dropboxusercontent.com/u/60803633/platformBehavior.capx

Image
B
29
S
12
G
21
Posts: 783
Reputation: 14,417

Post » Wed Dec 28, 2016 8:26 pm

You can do it using the platform behavior and perhaps a couple variables for the floating. As far as not fitting into the box, you just need to move the bounding box of your player sprite in a pixel or two. This is why most people will use an invisible player box with their player animations pined to it.
B
61
S
20
G
56
Posts: 1,077
Reputation: 35,986

Post » Wed Dec 28, 2016 8:37 pm

Burvey wrote:You can do it using the platform behavior and perhaps a couple variables for the floating. As far as not fitting into the box, you just need to move the bounding box of your player sprite in a pixel or two. This is why most people will use an invisible player box with their player animations pined to it.



Thanks for the information, I'm right now with that.
Regarding the other, I think it should fall without needing to change anything.
B
29
S
12
G
21
Posts: 783
Reputation: 14,417

Post » Wed Dec 28, 2016 8:45 pm

It cannot fall because of the collision check algorithm within the plugin. Any floating point x position that puts the left or right bounding box corners over a Solid and the platform object cannot fall.
A big fan of JavaScript.
B
74
S
20
G
69
Posts: 2,207
Reputation: 43,836

Post » Wed Jan 04, 2017 8:24 pm

Colludium wrote:It cannot fall because of the collision check algorithm within the plugin. Any floating point x position that puts the left or right bounding box corners over a Solid and the platform object cannot fall.


Thanks, I already adapted the collision box so that the sprite falls into the gap.

How can I detect when there is a solid just above the sprite?

I have seen "Is by wall" but this is only for left or right, and to check above ?.
B
29
S
12
G
21
Posts: 783
Reputation: 14,417

Post » Wed Jan 04, 2017 8:42 pm

You could try pinning an invisible sprite above the sprite and check if that is overlapping a solid object or not.
B
61
S
20
G
56
Posts: 1,077
Reputation: 35,986

Post » Wed Jan 04, 2017 8:52 pm

Burvey wrote:You could try pinning an invisible sprite above the sprite and check if that is overlapping a solid object or not.


Does not the equivalent of "Is by wall" exist?

Well, if that's an option, thanks for the info.
B
29
S
12
G
21
Posts: 783
Reputation: 14,417

Next

Return to Construct 2 General

Who is online

Users browsing this forum: Darknessed, Lorvin and 6 guests