• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

SOLVED Loading Sprite from External File problem

T

Tazv1

Guest
Hi Guys,
Probably a really simple one, but i am having trouble loading in a sprite from an external file. It is not finding the file in the drive location, but it is there! sprite_add keeps returning -1.

Any ideas what i am doing wrong?

GML:
thumbNail = "C:/Frontend/Wingman.png";

gameNum0_TN = sprite_add(thumbNail,1,false,false,0,0);

obj_gameNum0_TN.sprite_index = gameNum0_TN;
 
Top