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

2012/4/9

Cant figure it out!!!! scenario

mfiala5 mfiala5

2012/4/9

#
I have a homework assignment where i need to have a fish swimming randomly around the screen, and i have a seal controlled by the keyboard arrows and when the seal meets the fish, the seal needs to eat the fish. I have no clue how to program this. I cant even get the move(); command to work. ive read the introduction to programming greenfoot book and did exactly what they did in the wombat tutorial and still cant get this to work. Someone please help me with this as im completely lost. Please tell me the code and EXPLAIN IT SLOWLY
SPower SPower

2012/4/9

#
You can take a look at some of the open source scenarios here on greenfoot.org, I think this one would fit for you: http://www.greenfoot.org/scenarios/4742 You only have to look at the crab and the lobster class, the rest isn't necessary for you right now. Succes!
davmac davmac

2012/4/9

#
I cant even get the move(); command to work
Why not - what goes wrong? Post your code here.
You need to login to post a reply.