LOLercoaster

Get help using Construct 2

Post » Fri Jan 11, 2013 8:41 pm

I am coming to the end of making my first game LOLercoaster a draw and load rollercoaster gameI have a physics issue that I can't over come. I found an old topic regarding LineRider that seemed that it would answer my questions but the cap files are dead links now.

Question:
I am trying to get an object to follow a path in the style of a rollercoaster any idea how I can do this using gravity?, I have messed around with it quite a bit with no luck.

Having specific (increased) gravity at the bottom of each valley on the track route is my main problem. Any advice would be helpful. I intend on making a tutorial for he community when I get this all figured out.

Thanks in advance.

*few ideas i tried were creaing a ton of sprites with physics properties and using them as "rollers" that worked ok but is definately not giving the intended "smoothness" I am looking for.
B
6
S
1
Posts: 25
Reputation: 675

Post » Fri Jan 11, 2013 10:52 pm

Your best bet is to put the 'rollers' on the car itself and not the track.

You shouldn't need to add any 'extra gravity' or anything at corner points - Unless box2D doesn't take centripetal forces into account (I'm not sure on this one)
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » Fri Jan 11, 2013 11:57 pm

Hey boggler!

I don't know if this might help, as I haven't mucked with gravity too much, but could you use the y-coordinate of the moving object to determine how much gravity to apply? As the y increases, so does the gravity, and vice versa...
B
16
S
6
G
2
Posts: 152
Reputation: 3,764


Return to How do I....?

Who is online

Users browsing this forum: makkancs, Yahoo [Bot] and 24 guests