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

2014/10/9

Random Movement of 3 Actors.

Pizza020 Pizza020

2014/10/9

#
Hi all, I've got a project in which I have 3 actors that need to move randomly. And in 40% of the time the Actor has to turn. The actors may only move Horizontally and Verticaly. I made a class and three subclasses in which the actors are. How do I do this?
davmac davmac

2014/10/9

#
Why do you have three subclasses? Are the requirements different between each actor? I mean: why not just have three instances of one class?
You need to login to post a reply.