K-MAN
Feb 9th, 2002, 02:17 PM
Hi,
I am working on a game and i need a little help. In the game there are some projectiles(2d) being thrown. If someone could please help me add wind I would appriciate it. This is what i have so far in my loop. Everthing works so far, i just want a varible that willadd wind because i want to be able to change the strength and direction(left or right) at certain points. Thank you :)
do
.xcord = (Power(X) * Cos(Angle(X) * 3.14159 / 180) * .time)+ .startx
.ycord = .starty - (Power(X) * Sin(Angle(X) * 3.14159 / 180) * .time - 4.9 * .time ^ 2)
.time = .time + 0.1
loop
I am working on a game and i need a little help. In the game there are some projectiles(2d) being thrown. If someone could please help me add wind I would appriciate it. This is what i have so far in my loop. Everthing works so far, i just want a varible that willadd wind because i want to be able to change the strength and direction(left or right) at certain points. Thank you :)
do
.xcord = (Power(X) * Cos(Angle(X) * 3.14159 / 180) * .time)+ .startx
.ycord = .starty - (Power(X) * Sin(Angle(X) * 3.14159 / 180) * .time - 4.9 * .time ^ 2)
.time = .time + 0.1
loop