Hi All,
Thought I'd share this snippet of code, might be of use to someone!
There might be a simpler way to do this - always open to improvements, but it does what it says for my needs..
if( ( GetSpriteInScreen( 1 ) = 1 ) And ( GetSpriteY( 1 ) > 350) )
x_vel = GetSpritePhysicsVelocityX( 1 )
y_vel = GetSpritePhysicsVelocityY( 1 )
if( ( x_vel < 0.5 ) And ( y_vel < 0.5 ) )
Print(" Token At Rest : xV : " + Str( x_vel, 2 ) + " yV : " + Str( y_vel, 2 ) )
else
Print(" Token Velocity : xV : " + Str( x_vel, 2 ) + " yV : " + Str( y_vel, 2 ) )
endif
endif
Diolch!
Yeshu777