Logic of Player movement

Blitz3D Forums/Blitz3D Beginners Area/Logic of Player movement

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.

Ahh I think I have figured this out, rather than having one long strip, I broken it up, so I have

global hero
global hero_standing=LoadAnimImage("standing.png",8,10,10,10)
global hero_walking=LoadAnimImage("walking.png",10,10,10,10)

While Not KeyHit(1)

		Select hero_change
			Case 1:	
				hero=hero_standing
			Case 2:
				hero=hero_running
		End Select	

                If KeyDown(205) Then  hero=2



wend


That works out, but is there a function to say, if not keydown or keypressed, then hero_standing.