Cycle AnimImage frames using Mod

BlitzMax Forums/BlitzMax Programming/Cycle AnimImage frames using Mod

Local frames:Int=8
Local frame:Int=0

While True
	Print frame
	frame=(frame+1) Mod frames
Wend