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

2015/12/4

How Do I Count the Number of Spaces my Actor has Moved?

CodeMode017 CodeMode017

2015/12/4

#
Is there a way to count the spaces my actor has moved? I know I need to save the number as some sort of variable that should look something like this: "for (int i = 0; i < 10; i++)"
danpost danpost

2015/12/4

#
CodeMode017 wrote...
Is there a way to count the spaces my actor has moved?
Starting when -- when it was place into the world or at that instant in time?
I know I need to save the number as some sort of variable that should look something like this: "for (int i = 0; i < 10; i++)"
Maybe the java tutorial page on variables might help.
You need to login to post a reply.