This site requires JavaScript, please enable it in your browser!
Greenfoot
Username
Password
Remember Me?
Sign Up, Lost Password
Activity
About
Documentation
Download
Discuss
Scenarios
Solomon
wrote ...
2017/1/22
Changing world
Solomon
2017/1/22
#
How to make a trigger that when you click an image it will change the world you are in ?
danpost
2017/1/22
#
Solomon wrote...
How to make a trigger that when you click an image it will change the world you are in ?
What code do you expect you would be using and where would you anticipate it to be placed?
Solomon
2017/1/22
#
java, and i figured out how to do it using a key, but each time i swap through words they reset, how can i fix that? if (Greenfoot.isKeyDown("shift")) Greenfoot.setWorld(new Introducere() );
danpost
2017/1/22
#
Solomon wrote...
java, and i figured out how to do it using a key, but each time i swap through words they reset, how can i fix that?
Do not create another world of that type. Maintain a reference to the world and set it active again when needed.
You need to login to post a reply.
X