So I'm making a game where you need to drag 2 different objects to 2 different respective sides to diminish their number. The objects continuously spawn every 2 seconds and when 5 of either object are on screen at once you are supposed to be directed to a lose screen. My problem is that you are not directed to the lose screen.
dropbox.com/s/5t1v1q97vwvzghz/red%20vs%20blue.capx
bluenum is always 1. you have it set to navigate when bluenum is 5. you need to make bluenum a global variable if it's going to act like a counter and add 1 to it whenever an enemy is created, subtract 1 when destroyed.
Develop games in your browser. Powerful, performant & highly capable.
— Thanks, that did the trick!