local help

BlitzMax Forums/BlitzMax Beginners Area/local 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.

hey guys

take a look at this
If hit = True 	
		Local frame:Float
		SetAlpha 1.0
		SetRotation 0
		
		DrawImage explosion,targetship.x,targetship.y,frame			
	
		frame :+ 0.5
		If frame > 6 
			hit = False
			frame = 0
		End If
	End If


if i use local frame:float

then frame does not update and the anim image hence does not animate, but if i change that to global it works. I dont understand...why?