Snowboard Game

Get help using Construct 2

Post » Mon Jan 28, 2013 2:27 pm

Hi guys

I made a little snowboard game with the physic behavior.

The problem is, that the snowboarder doesn't stay on the floor if hes to fast or its to steep...

What i wanted to do is something like this Youtube Example at 5:00.

And heres what I did: Snowboard.capx

Yoshi drives every curve beautiful, my snowboarder just flies away :D


Hope somebody can help me though :)
B
20
S
2
G
2
Posts: 34
Reputation: 2,525

Post » Mon Jan 28, 2013 3:08 pm

Have you tried increasing your gravity?

edit; Yoshi doesn't really use physics (at least, not realistic physics like construct 2 provides). That's why Yoshi follows the curves neatly, and your snowboarder flies away if he's too fast. Increasing your gravity might work, but note that your snowboarder might still be too fast. Jasper2013-01-28 15:13:13
B
13
S
3
G
4
Posts: 35
Reputation: 3,358

Post » Mon Jan 28, 2013 3:14 pm

Yeah, as I wrote in my example, if I increase the gravity or set a force downwards hes just getting faster, but the problem stays the same :/
B
20
S
2
G
2
Posts: 34
Reputation: 2,525

Post » Mon Jan 28, 2013 3:50 pm

Try this: https://www.dropbox.com/s/cqmznbs0urxb41h/Snowboard.capx

Essentially you need to apply a force towards the angle of the floor so that you 'stick' to it. It checks to make sure your y velocity is negative so that it doesn't apply force the when you're jumping.

You're still going to have an angle issue though.thehen2013-01-28 19:01:35
Moderator
B
72
S
13
G
11
Posts: 900
Reputation: 11,783

Post » Wed Jan 30, 2013 2:39 pm

Oh that works great, thank you!

I fixed the angle issue, you just have to use "anglelerp" instead of "lerp" and everything works fine :)
B
20
S
2
G
2
Posts: 34
Reputation: 2,525


Return to How do I....?

Who is online

Users browsing this forum: 99Instances2Go, shinkan, stylie1, tarek2 and 12 guests