S
Sn3akyP1xel
Guest
I can't figure out what's happened here, i'm sure this was working last week.
If CamSpeed X or Y drops below 1, i need the else condition to execute.
The show_debug values in the debug window during play clearly shows the camera speeds in either axis dropping below 1 (in fractional values), but the else condition is never called.
I presume the if line is acceptable?
If CamSpeed X or Y drops below 1, i need the else condition to execute.
The show_debug values in the debug window during play clearly shows the camera speeds in either axis dropping below 1 (in fractional values), but the else condition is never called.
I presume the if line is acceptable?
Code:
if ( abs(CamSpeedX)>1 || abs(CamSpeedY)>1 ){
CamX+=CamSpeedX;
CamY+=CamSpeedY;
show_debug_message("CamSpeedX = "+string(CamSpeedX) );
show_debug_message("CamSpeedY = "+string(CamSpeedY) );
}
else{
Do Stuff.
}