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

2015/5/31

Describe a situtation where the canMove() method would result in a false?

spazonred1998 spazonred1998

2015/5/31

#
I know it results in a false if the object is facing any edge. Is there another instance?
davmac davmac

2015/5/31

#
What 'canMove()' method?
spazonred1998 spazonred1998

2015/5/31

#
I'm new to green foot. When you place the wombat you get a false if it's facing any edge but is the another instance when you would get a false
danpost danpost

2015/6/1

#
Where did you get the 'canMove' method? what is its code? The Actor class provided by greenfoot does not contain a 'canMove' method. Without seeing it code, it is impossible to say what it does or what it will do in any situation. The only other thing we could do is maybe suggest that you just test it out yourself to see what it does.
You need to login to post a reply.