GameMaker: Studio

GameMaker: Studio

View Stats:
[HELP] Script Error
Hi ! So i explain my problem.. I'm planning to make a Mario fangame, and as for the engine and code, I want to use "Hello MArio Engine" ( because of the detailled steps in the codes <3 ) but when i tried to launch the engine in Game maker they say "In object obj_persistent, event Create, action 1 at line 68: Unknown function or script: application_surface_draw_enable
" and the line 68 say (67)"//Disable application surface automatic drawing
(68)application_surface_draw_enable(0)" and I don't undertsantd why this not work... Is this piece of code important ? Or do you think i can just take some of the engine ( Like mario physics code etc ) without any problem ? I hope i've been clear ^-^"
Thanks in advance
< >
Showing 1-4 of 4 comments
Diveyoc Feb 23, 2017 @ 7:28pm 
Well, for one, it needs an (argument). I don't know anything about this command really, but the help index says that by default it is set to true.
Therefore, I guess maybe they put the code there becuase they needed to change it to false.
Change the code and see what happens:

application_surface_draw_enable(false);

https://docs.yoyogames.com/source/dadiospice/002_reference/surfaces/application_surface_draw_enable.html

Edit:
Maybe I read that wrong, I thought that command line was // commented out. If the argument is currently 0, the try changing it to (1) and see what happens.
application_surface_draw_enable(1)
Last edited by Diveyoc; Feb 23, 2017 @ 7:30pm
HardSonicStorm Feb 24, 2017 @ 2:30am 
Still doesn't work, I try both of them and ended up with the same reseult. If you want to have a look: https://gyazo.com/e20fda622184d9a3fc77c37ec88a4cf2
Diveyoc Feb 24, 2017 @ 2:49am 
Apparently your version of GM isn't recognizing this as a built-in function. The command comes up yellow if I write in in my code. I'm not sure if some things still do not work in the GM free version or not, but this could be the problem. Are you just using the free version of game maker? Or do you have pro?

Edit: Wait, I didn't realize you captured your version in the screenshot. So you have v1.2.1130
I'm not really familiar with the different versions. All I can say is that this command doesn't work with what you have. Maybe someone else has a comment or advice.
Last edited by Diveyoc; Feb 24, 2017 @ 2:56am
HardSonicStorm Feb 24, 2017 @ 3:22am 
i have the Master version... but wht's bugging me, is the fact that the game worked fine before I don't know if I have an older version contrary to the free one, I'll check...
< >
Showing 1-4 of 4 comments
Per page: 1530 50

Date Posted: Feb 23, 2017 @ 2:53pm
Posts: 4