I made a game were weapons cycle based on the gunswitch variable within GUN_A. I have it set to go from 0 to 2 and upon reaching to it resets to 0. For some unknown reason it reaches 2 then drops to 1 and continues to cycle from 1 and 2. The text also seems to get confuzed and sets the text defined for gunswitch 1 fto 0 and the gunswitch 2 text to 2.
here is my .capx if needed
mediafire.com/file/6fw98ezcaljpj88/kekgame.capx
image of the problem that i cant seem to find
Develop games in your browser. Powerful, performant & highly capable.
GUN_A=(GUN_A+1)%3
thank you good sir, so what was the problem? because from what it looked like i was just setting gunswitch to different values, but this seems to work much smoother?
jadden14 i didn't check your solution but GUN_A=(GUN_A+1)%3 is a way to cycle positive from 0 to %X-1
hope i could help youy