Loadimage into Type

BlitzMax Forums/BlitzMax Beginners Area/Loadimage into Type

The Forum Archive is locked. These are the original blitzbasic.com forums, kept so their posts can still be read and searched. No new topics, replies or edits can be made here. To join the conversation, head over to the Blitz3D+ forums.

Type man

Field x,y,action,image:TImage

End Type
Graphics 640,480
Global player:man

Global manimage:TImage=LoadImage("mainchr.bmp")

player=New man
player.x=400
player.y=300
player.image=manimage
DrawImage player.image,player.x,player.y
Flip
WaitKey()

Graphics mode was missing.
I also changed image field to a TImage.