hi everyone i have in my game 2 layers (layout1 and battle), i have in layer1 an enemy with an instance variable called aux that have a string with a number, when you collide with him it will set the global variable(variable3) to the value of aux, i have a text to debug and that shows the value of the global variable, then it will change to the battle layer and, i dont know why, variable3 wont have any value, i need to fix this because i need that value to pass to the battle layer to trigger some events.
here is my capx dl.dropboxusercontent.com/u/85479859/dabestgeim.capx
you need to delete the action set variable3 to 12 on start of layout in the event sheet 2 to trigger the bug, i used that to test some functions that i made because of the bug with the global variable
thanks.