Post

 Resources 

Console


RE: Calculation question Rag on a Stick (5 replies, 0 views) (2000-Sep-26)
-
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

RE: Calculation question Kalath (4 replies) (2000-Sep-27)
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 19 visitors within the last 20 minutes
RSS News Feed