Question

I am using Game Maker: Studio Master Edition. I have a problem: Every time I run my game, a window pops up telling me:"In obj_control, in Event Draw Event number 0 at line 3: cannot use function/script name for a variable, using"font_add_sprite"" Can someone tell me what is the solution for this please? I mean is my variable wrong or what? That is my code for Event: obj_control.Create:

globalvar fnt_numbers;
fnt_numbers = font_add_sprite(spr_lrg_fnt,ord("0"),true,
Was it helpful?

Solution

font_add_sprite() hasn't existed for years. See here from about a year ago. A somewhat more modern alternative is described here.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top