View Full Version : Skateboarding
saad
June 12th, 2004, 11:06 PM
How would you script an action of a person going of a ramp like in skate boarding or when car jump of ramps. Can any one help me?
GreenLantern
June 13th, 2004, 01:10 AM
I would just use tweening. Or is there some reason that you have to script it?
Digitalosophy
June 13th, 2004, 03:41 AM
To script it wouldn't be practicle IMO.
radicaljugnu
June 13th, 2004, 04:37 AM
to script that would require a bit of trigo there i think. but it would be tough. much easier to tween it.
GreenLantern
June 13th, 2004, 04:47 AM
Depends if you are in for a challenge or not....
:beam:
khawar
June 13th, 2004, 08:11 AM
you can make a path(equal to the length of the obstacle) in the form of a curve and fly that car of person on the path. make this stuff on some other frames and then when the mouse trigger or key press happens apply this code gotoAndPlay(frame) to the button and this will do that effect for you. then you can add scores to your dynamic text field if the path is completed otherwise the score should be static.
Saad, are you from pakistan?or do you know how to speak in urdu?
Bye
saad
June 13th, 2004, 10:57 AM
The problem with tweening is that you can't really determine how far the jump depending on the speed your moving at. With codes you can.
saad
June 13th, 2004, 11:37 AM
so doesn any one know how I can get this to work?
saad
June 13th, 2004, 07:57 PM
any sites?
radicaljugnu
June 14th, 2004, 05:42 AM
well, you could perhaps determine an angle, get the sine value, calculate the hypotenuse, rotate the skateboard and increase _x and _y with respect to its motion. but it would be quite difficult.
saad
June 14th, 2004, 09:52 AM
the problem is the thurst.
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.