bsabiston
Member
I imported my GMS 1.4 game to GMS 2 and boy it has not been smooth. One new issue I hit today:
I have a button, a persistent object at depth 0. When the player presses it, I change the depth to -100 to bring it above some other stuff. Later, when they press it again, I put the depth back to 0.
For some reason GMS2 doesn't like that. The button just seems to disappear when I set the depth back to zero. Its draw GUI function is no longer called. Anyone know why that would be? The button is still there, because I can click it. But it doesn't display. What does GMS 2 do differently that could cause this behavior, any ideas?
Thanks for any suggestions
I have a button, a persistent object at depth 0. When the player presses it, I change the depth to -100 to bring it above some other stuff. Later, when they press it again, I put the depth back to 0.
For some reason GMS2 doesn't like that. The button just seems to disappear when I set the depth back to zero. Its draw GUI function is no longer called. Anyone know why that would be? The button is still there, because I can click it. But it doesn't display. What does GMS 2 do differently that could cause this behavior, any ideas?
Thanks for any suggestions