Need Some Help

Blitz3D Forums/Blitz3D Programming/Need Some Help

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Const DeadSpaceRadius = 50

If  Sqr( ( x- w )^2 + ( y-h )^2 ) > DeadSpaceRadius
  TurnEntityEtc...
Endif

Sqr() just slows things down (not that it really matters in this usage).

This does the exact same thing, just a wee bit faster.
const DeadSpaceRadius = 50

If  ( x- w )^2 + ( y-h )^2 > DeadSpaceRadius*DeadSpaceRadius
  TurnEntityEtc...
Endif