jobjorgos
Member
What is the difference between script example A and example B?
Example A
script_jump:
Example B
script_jump:
I have script_jump in the step event of the player, but somehow ONLY in Example B the variable do_character_jump gets the value 1.
Does a function do anything at all without arguments?
The reason I use scripts, is because I don't want 25000 rows of code in the players step event, but put most code in 'container' scripts to keep a clear overview
Example A
script_jump:
GML:
function scr_custom_input_menu_character_jump(){
do_character_jump=1;
}
script_jump:
GML:
function scr_custom_input_menu_character_jump(){
}
do_character_jump=1;
I have script_jump in the step event of the player, but somehow ONLY in Example B the variable do_character_jump gets the value 1.
Does a function do anything at all without arguments?
The reason I use scripts, is because I don't want 25000 rows of code in the players step event, but put most code in 'container' scripts to keep a clear overview