simple turnentity loop problem

Blitz3D Forums/Blitz3D Programming/simple turnentity loop problem

Use a flag to toggle between rotation and still. For example, a pseudo code would be:

Global turnflag = 1
Const MyToggleKey = 57 ;space bar

if mouse is over the sprite then
   if turnflag = 1 then
      turnentity myentity, a,b,c
   endif
endif

if keyhit (MyToggleKey) then
   turnflag = 1 - turnflag
endif


Hope this has sense for you,
Sergio.