Loadimage into Type
BlitzMax Forums/BlitzMax Beginners Area/Loadimage into Type
| ||
Any idea how to load the manimage into the player.image field please? Type man Field x,y,action,image End Type Global player:man Global manimage:TImage=LoadImage("mainchr.bmp") player=New man player.x=400 player.y=300 player.image=manimage thanks Graham |
| ||
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. |
| ||
Great, thanks for your help T |