Hello,
For my major work in software development I will need a motion parenting mechanism. However I am relatively new to Greenfoot and I'm not entirely sure how to use the "get" methods.
It would be awesome if I could tell object "A" to get "number" from object "B".
I looked at the Greenfoot API and found some useful things like "getObjects()" and "getObjectsInRange()".
I imagine it would go something like:
getWorld().getObjects(B.class).getNumber()
(assuming I've pre-wrote a getNumber Method)
However, whatever I do I can't figure it out.
A little help please?