• 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!
  • Hello [name]! Thanks for joining the GMC. Before making any posts in the Tech Support forum, can we suggest you read the forum rules? These are simple guidelines that we ask you to follow so that you can get the best help possible for your issue.

Question - Code Unknown Function font_add_sprite

L

Leon Ortsac

Guest
Keeping it short, basically trying something new with Studio 2 and this showed upon compiling.

Object: object0 Event: Create at line 5 : unknown function or script font_add_sprite

CREATE EVENT
x1 = 64;
y1 = 64;
outline = 4;
text = "Hello World!";
newFont = font_add_sprite(sprite0,ord("!"),1,1);

Is there something I am not getting with Studio 2?
 
T

TitanAnteus

Guest
The function is definitely there. Perhaps you are using the trial version? (which most resource-creating functions disabled)?
I think the font functions do need to be looked at.
Gamemaker recognized font_replace as function but errors out when it tries to run it, even though it doesn't exist.
 
Top