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

2022/4/29

Shop is not working

ADAM68801 ADAM68801

2022/4/29

#
Hi, I have a shop in my game, and I want to click on a actor in shop whitch I want to play with, and then the actor shoud change in the game. But I dont know how to do it. Can you please help?? Scenario (https://www.greenfoot.org/scenarios/29463 )
danpost danpost

2022/5/7

#
ADAM68801 wrote...
Hi, I have a shop in my game, and I want to click on a actor in shop whitch I want to play with, and then the actor shoud change in the game.
Either use a parameter in your game world constructor to pass which character was chosen or create the world and add the character before setting that world active. I am presuming that the character is not being changed mid-game.
You need to login to post a reply.