M
MIkadini
Guest
I've try to make a simple script that simply increment a number that we pass in the argument. In my object i call this script function every step and the variable is crate in the create section and not in the step section. this is my code, the resoult in the console isn't increment and simply remain equal to the original value.
This is in the step section:
ciccia = Aumento(ciccia);
show_debug_message(string(ciccia));
This is in the script function:
return argument0++;
The debug output is the same number that i create in the create section (was 0)
This is in the step section:
ciccia = Aumento(ciccia);
show_debug_message(string(ciccia));
This is in the script function:
return argument0++;
The debug output is the same number that i create in the create section (was 0)