Help LoadAnimImage
BlitzMax Forums/BlitzMax Beginners Area/Help LoadAnimImage| 
 | ||
| I Have this little code: Global caroset = LoadAnimImage( "incbin::Cardset/peekall.png",73,97,0,15 ) ' Load a Cardset with 16x16 Cards Graphics 640,480 'Graphic Mode Now i want draw a Card on the Screen DrawImage caroset,100,40,1 but i get this Message: Runtime Error Attempt to access field or method of Null Object What's wrong, in OldSkool2 demo it works? Can anyone help me1 | 
| 
 | ||
| try IncBin "Cardset/peekall.png" Global caroset = LoadAnimImage( "incbin::Cardset/peekall.png",73,97,0,15 ) | 
| 
 | ||
| I have tried your version but nothing happens? | 
| 
 | ||
| You've got your loadanimage before the graphics command. The graphics command resets all previously loaded images. | 
| 
 | ||
| Yep, tonyg is right. You have to set a graphics mode first then load your images. |