Sprites

BlitzMax Forums/BlitzMax Beginners Area/Sprites

SOLVED! Updated the code... weird that it wasnt working before.

So I've tried setting mask colors and everything and nothing seems to work. Any suggestions? This is my source for the graphics and main loop...

'-------------------------------------------------------------------GAME SETUP

Graphics 510,300,0
Local Background:TBackground = TBackground.Create("background.png",0,0)

SetMaskColor 255,255,255
Local Player:THero = THero.Create("guywalking.png",15,142)

'--------------------------------------------------------------------MAIN LOOP

Repeat
	Cls
	Background.DrawSelf()
	Player.UpdateState()
	Player.DrawSelf()
	Flip
Until KeyDown(KEY_ESCAPE) Or AppTerminate()
End