Animating Doors and similar

Blitz3D Forums/Blitz3D Programming/Animating Doors and similar

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.

so i hear.

Btw solved my fps problem - anyone reading this, dont have program check for camera pick except on mouseclick, or however you deside to activate something that relies on camerapick.

It hogs FPS, turns it into SPF

I changed part of the above code, put the amendment below, is just the first 10ish lines.

if MouseLeft
   if CameraPick( Camera , MouseX(), MouseY() ) = more\doorgfx
           If more\opening = False And more\open = False And more\closing = False And EntityDistance( playerbox , more\doorgfx ) < more\distance#
	        more\delaytime = Millisecs() : more\opening = true : more\open = False : more\closing = False
	   EndIf
           If more\opening = False And more\open = True And more\closing = False And EntityDistance( playerbox , more\doorgfx ) < more\distance#
		more\open = False : more\opening = False : more\closing = True
           EndIf
   endif
endif