disboijoe
12-07-2009, 02:17 AM
my project needs me to use:
-at least two loops (a block of codes that repeats consecutively for a specified number of iterations or until a condition is met)
-at least 3 new methods with at least one of them being called (executed) in two or more places in the program (not executed consecutively-that would be a loop)
I tried using loop 5times and thought it would make the bunny jump 5times while the other things are going on in the world, but instead it makes the bunny jump 5times and then everything will start. So i resorted to making the bunny loop 1time and then everything starts. I wanted to make the bunny jump on its own while the other things in the world are happening.
Is that how I'm suppose to be using these loop? I'm trying include those rules above into my world but dont know if I'm even doing it right. Also I have no idea what my teacher means by execute.
-at least two loops (a block of codes that repeats consecutively for a specified number of iterations or until a condition is met)
-at least 3 new methods with at least one of them being called (executed) in two or more places in the program (not executed consecutively-that would be a loop)
I tried using loop 5times and thought it would make the bunny jump 5times while the other things are going on in the world, but instead it makes the bunny jump 5times and then everything will start. So i resorted to making the bunny loop 1time and then everything starts. I wanted to make the bunny jump on its own while the other things in the world are happening.
Is that how I'm suppose to be using these loop? I'm trying include those rules above into my world but dont know if I'm even doing it right. Also I have no idea what my teacher means by execute.