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

2021/3/18

Set Background of World in Actor which is not in this World

TechNick TechNick

2021/3/18

#
Hey, I have a world with settings for my game. In this world you should be able to click on a button and change the background of the world where the main game is. But I don´t know how to change the Background of the gameworld when the Actor is not in this world. Thanks for your help
danpost danpost

2021/3/18

#
TechNick wrote...
I have a world with settings for my game. In this world you should be able to click on a button and change the background of the world where the main game is. But I don´t know how to change the Background of the gameworld when the Actor is not in this world.
Store the String filename of the background image in a field in your settings world. When creating the game world, set its image right there before setting the game world active.
You need to login to post a reply.