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

danpost's Comments

Back to danpost's profile

I believe there is one in Builderboy's 'Nightmare: Emergence' scenario (http://www.greenfoot.org/scenarios/2017).
@JetLennit, do not you mean 'excited' (you are not leaving, are you... lol).
You can resolve the issue by looking at the 'addObjectOutside(Actor, int, int, int,, int)' method of the 'XWorld' class or the 'setLocationOutside(int, int, int, int)' method of the 'XActor' class in my 'XWorld XActor Support Classes' scenario. Both use the static 'random' and 'range' methods included in the 'XWorld' class; so you will need that code also.
@joeschmoe, it is here for anyone to use as they please. Post a link to your scenario here so that we can see how it turned out.
Will add 'best and near' high scores later (if not entered in the competition, at the end of the month; if entered, probably not until after results of competition). This it so everyone who wants to see the code can check it out, as is.
@Busch2207, personal only or showing best and near?
@joeschmoe, also, as far as clicking on the dot, the image of the dot is much larger than the dot itself -- giving a much bigger 'hit zone'. It would have been a whole lot harder had I reduced the size of the image to the size of the dot (the image would be about one-fourth the size while the dot would remain the same).
@joeschmoe, lol and lol, and btw lol. That would not then be a counter, would it!
@joeschmoe, the click is detected upon release of the mouse button. @Busch2207, do you want one to track highscores between compilations or one using UserInfo storage?