How do I make a bouncy platform...

Get help using Construct 2

Post » Thu Aug 11, 2016 10:29 pm

Hi, working on my platform game, playing around with the Physics behavior but having no luck creating a bouncy platform block. So it's a solid, an object that when you jump on it gives an upward bounce effect. Is there another behavior that would do this, like a 'material' behavior?

thanks,
M
B
7
S
1
Posts: 23
Reputation: 421

Post » Fri Aug 12, 2016 12:30 am

If you want a bouncy platform using physics, you would need to apply force to the player when overlapping the platform (possibly overlap at offset?).

Basically something like;

[Player is overlapping platform at offset Y+1]
--- Apply force 500 at angle random(265,275)

Or something along those lines :)

~Sol
Tired of crappy file hosts that are crappy? Get DROPBOX - https://db.tt/uwjysXJF
Moderator
B
84
S
34
G
40
Posts: 3,032
Reputation: 30,499

Post » Fri Aug 12, 2016 10:13 am

Wouldn't it apply impulse instead apply force ?
B
12
S
7
G
7
Posts: 450
Reputation: 4,276

Post » Fri Aug 12, 2016 1:36 pm

Either/or I guess it depends on the effect you're looking to achieve. Impulse might be a better choice for this particular use.

~Sol
Tired of crappy file hosts that are crappy? Get DROPBOX - https://db.tt/uwjysXJF
Moderator
B
84
S
34
G
40
Posts: 3,032
Reputation: 30,499

Post » Fri Aug 12, 2016 5:38 pm

Hmm. And if I didn't want to make the platform bouncy by using physics? Feel like there should be a materials property to a solid...

Sol, in your code bits above, the option to Apply Force, is that contextual if you have Physics applied to the platform block?

thanks,
M
B
7
S
1
Posts: 23
Reputation: 421

Post » Sat Aug 20, 2016 1:49 pm

Hey, thanks again guys, I kept screwing around and found a simple way, no Physics required:

(hmm is there a trick to adding an image to a post, can't seem to paste anything in. Guess that's an attachment?)

If Player overlapping object at offset (0,2), then Player set Platform Vector Y to -800

cheers,
M
B
7
S
1
Posts: 23
Reputation: 421


Return to How do I....?

Who is online

Users browsing this forum: Bootfit and 17 guests