This site requires JavaScript, please enable it in your browser!
Greenfoot back
LonelyCreeper
LonelyCreeper wrote ...

2013/1/6

How do you set the world using buttons that the mouse clicks on?

LonelyCreeper LonelyCreeper

2013/1/6

#
In my game there are two buttons, both actors in the same class. How do I make it so that when the mouse clicks on each of these the world is set to a different one?
danpost danpost

2013/1/6

#
Add an instance field to the button class to hold the text of the button (if you do not already have that field). Use the value of that 'String' to determine the world to proceed to. If you do not really understand, show your button class code.
LonelyCreeper LonelyCreeper

2013/1/6

#
Oh I solved it. Thanks anyways though.
You need to login to post a reply.