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

2014/4/16

Creating new Wombat object

mpmarino mpmarino

2014/4/16

#
First time user of Greenfoot and have an assignment for school (very basic). I am using the files from greenfoot.org/book and have the 'leaves-and-wombat' file open. I'm trying to right-click on the Wombat in the Actor Class to "new Wombat ()" but here's what I get: http://screencast.com/t/BgumSukqtwM2 Any assistance would be greatly appreciated!
Zamoht Zamoht

2014/4/16

#
You have to compile first.
Entity1037 Entity1037

2014/4/16

#
Try placing this code into the WombatWorld's constructor (public WombatWorld).
addObject(new Wombat(),1,1);
mpmarino mpmarino

2014/4/16

#
Zamoht... thanks!!!
You need to login to post a reply.