Hey 343qwm29,
I hope this line of code will help you...
A little hint: When you don't know how to do something, but you have an idea what your code has to do, go to your Greenfoot Scenario and click on "Help" and then on "Greenfoot Class Documentation" where you can find almost every method that Greenfoot has, and how to use it.