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

2013/1/29

world map/level editor

ronzhi ronzhi

2013/1/29

#
Hi, is there any simple way to design world/map when we have multiple world/map? when i finish design the first map and then save the world, i can't visually design the second map, because the canvas is still with first map sorry for my english,hope you understand :)
danpost danpost

2013/1/29

#
You can comment out the prepare method (label it as the level one map) and remove the call to that method in the constructor; then, construct you second world and save the world to get the code for that level. Do the same with the second level to start a third, and so on. When all levels are complete, you will need to use a series of 'if-else's depending on the value of the field holding the current level number (or a 'switch' block). Thus, putting all the level maps in the 'prepare' method. Are you using a gridded world (world with a cell size of greater than one)? If so, check out my MapWorld SuperClass scenario.
ronzhi ronzhi

2013/1/30

#
wow nice..thanks danpost i never thought about that :D
You need to login to post a reply.