How do I make the game respond to the second click?

From ggc

Jump to: navigation, search

After I change from stage==0 to stage==1, how do I make the game react to the second click? Do I need another:

if (left.intersects(click))

and so on? If not, how else would it be done?

Yes, in your advanceFrame method you'd need

if(stage==1)
{
     //second click responses here
}

We'll talk about ways to shorten and simplify this code in the coming 2 weeks of class, but for now, just add code to get it working.





Views
Personal tools
Add to 
del.icio.usAdd to 
diggAdd to 
FacebookAdd to 
favoritesAdd to 
GoogleAdd to 
MySpaceAdd to 
PrintAdd to 
SlashdotAdd to 
StumbleUponAdd to 
Twitter