Post

 Resources 

Console


RE: Calculation question Kalath (4 replies, 0 views) (2000-Sep-27)
-
Ok thanks that worked... but i want the bullet to move like a rainbow ;) first it goes up then down, not in a straight line. Rag on a Stick wrote: ------------------------------- Put this line in your declarations section: Const Rad = 3.1315 / 180 Because the Sin and Cos use radians, multiply things by Rad to convert them. dx and dy are the distance that you will move the missile each frame. 'When the player fires: Angle = PlayerAngle * Rad dx = Sin(Angle) * Power dy = Cos(Angle) * Power Then, to update the position: BulletX = BulletX + dx BulletY = BulletY + dy dy = dy + Gravity


-
Up One Level | Back to Forum

It would... Rag on a Stick (3 replies) (2000-Sep-27)
RE: It would... Kalath (2 replies) (2000-Sep-29)
RE: It would... Rag on a Stick (1 reply) (2000-Sep-30)
RE: It would... Kalath (0 replies) (2000-Sep-30)

Copyright © 2002 - 2004 Eric Coleman, Peter Kuchnio , et. al.
There have been 100 visitors within the last 20 minutes
RSS News Feed