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

2015/12/7

How to link counter to hitting blocks

1
2
malikdon malikdon

2015/12/21

#
danpost wrote...
That explanation shows a lack of understanding in what is happening. If the Counter object is to be passed to the Mario object when the Mario object is created, then the Counter object must be created first. The first four lines above could be written as follows:
addObject(theCounter = new Counter(), 688, 29);
addObject(new Mario(theCounter), 66, 244);
I believe what you and I are saying is the same thing, except what you said is more eloquently worded.
You need to login to post a reply.
1
2