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

2017/12/9

Stop actors from spawning on top of one actor?

1
2
3
4
danpost danpost

2017/12/17

#
If the constructor is the only place you are calling 'placeRocks', then that is the problem.
Recorsi Recorsi

2017/12/17

#
danpost wrote...
If the constructor is the only place you are calling 'placeRocks', then that is the problem.
Shouldn't it message me once then? And i tried putting it in the act method, it still didn't work.
danpost danpost

2017/12/17

#
Recorsi wrote...
Shouldn't it message me once then?
Not unless you move the print line down to outside the 'if' block.
i tried putting it in the act method, it still didn't work.
Show how used in act. Did you run the scenario or hit the 'Act' button a few times?
Recorsi Recorsi

2017/12/17

#
danpost wrote...
Recorsi wrote...
Shouldn't it message me once then?
Not unless you move the print line down to outside the 'if' block.
i tried putting it in the act method, it still didn't work.
Show how used in act. Did you run the scenario or hit the 'Act' button a few times?
Ok nevermind it works now. I moved the act method up, maybe that was the problem. Thanks danpost & Hippo :)
You need to login to post a reply.
1
2
3
4