Player movement and sprites

BlitzMax Forums/BlitzMax Beginners Area/Player movement and 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.

Anyone complaining about noobs in the BlitzMax Beginners Area is a noob himself.

I concur :)

Anyways, I have an annoying problem with this current code I'm working on...Even though SetMaskColor is, I think, defined perfectly, it still displays a pink border around the image. This has happened before too!
' Simple Shooter Game
'*******************************
'*   coded by Nick Hagen       *
'*   on January 8th 2009       *
'*******************************

'******** Init Section *********

Graphics 640,480,0

'Mask images
SetMaskColor 255,0,255

'Define player type
Type t_player
	Field x_pos:Int
	Field y_pos:Int
	Field sprite:TImage = LoadImage ("gfx\sprites\ship_2.png")
End Type

'Create new spaceship object
player:t_player = New t_player

HideMouse()

'********* Main Loop *********

Repeat

	Cls
	player.x_pos = MouseX()
	player.y_pos = 420
	DrawImage player.sprite,player.x_pos,player.y_pos
	Flip
Until MouseHit(1)
End