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

2020/11/13

create another Object, when clicking with the Mouse on a Button

PascalFischer PascalFischer

2020/11/13

#
Hey, I have a big Problem. I want to add a new image in the same world, when I click on a Button, but when I use
addObject()
it shows me an error, because I can use this Command only in a world. Can someone tell me how I can do this?
danpost danpost

2020/11/13

#
Use: getWorld().addObject(...)
You need to login to post a reply.