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

2013/7/4

What am I missing?

a_quiet_person a_quiet_person

2013/7/4

#
I have just started using java/greenfoot so I need help with the basics, When I place an actor (using right click) then press reset the actor disappears. How do I set the position, so that the actor is automatically in the right place. I know this is going to have an obvious answer and i'm sorry for being a noob -.-
Zamoht Zamoht

2013/7/4

#
In the world constructor add this line: addObject(new ClassNameHere(), 50, 51); ClassNameHere should be the name of the class you want to add. 50 is the x coord. 51 is the y coord.
a_quiet_person a_quiet_person

2013/7/4

#
I was trying to work that out for about half an hour, so thanks!
davmac davmac

2013/7/4

#
Also, you can right-click the world and "save the world". This writes the code for you.
You need to login to post a reply.