What is a useful script to make a bicyle that has +-3 sprites : a bike frame and 2 wheels.
The wheel turn up ,down ,forward and backward and the bike goes to both wheels

Offline
I would have the bike frame move and the wheels follow the frame. Here's a useful script:
when gf clicked forever go to [bicycle frame v]
Offline
Thanx and i think i have a script for it but the back wheel goes to the x of the bike frame -20 and the frame goes to the x of the front wheel -20 now all that i need is a scrolling script for the front wheel accelleration and turning on slopes and the same with the back wheel and the frame.

Offline
If you want a good script for the front wheel turning and so the screen moves:
-Find the radius of your wheel in pixels (distance from the center to the edge of the wheel). I'm going to call it x.
-Find 2x*pi or x*6.283.
-Divide by 360.
This is the number of pixels the bike should move for every degree that the front wheel turns. You can either make that a constant value, or have it be changed by another variable.
Offline
when gf clicked forever go to x:(([x position v] of [frame v])-(20)) y:([y position v] of [frame v])Edit: a way to reword AtomicBawm3's post:
Last edited by MoreGamesNow (2012-08-29 23:06:45)
Offline