Sprites

BlitzMax Forums/BlitzMax Beginners Area/Sprites

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.

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