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

danpost's Comments

Back to danpost's profile

The challenge is possible, but you would be challenging the impossible.
@tkiesel, by 'freeware', I mean the code is not under any license of any kind and is free to use at will. I have found one bug in the class which I will need to address (hopefully today). It is in the unlimited, no-background image scrolling part of the scroll method where the scrolling offsets fail to be updated.
@tkiesel, as far as adding the line (again), I was incorrect when I said "calling scroll from the world constructor is useful in crating the initial background image sometimes". This is actually being done by both the Scroller class constructors -- calling scroll with both parameter values of zero (see lines 46 and 77). So, not "sometimes"; but, "all the time". Adding your line would prevent these calls from doing their functions (setting the initial background image of the world).
@tkiesel, the code was created completely by myself and is presented as freeware.
@tkiesel, I think the calling statement should check that condition for scrolling. Calling scroll from the world constructor is useful in creating the initial background image sometimes and adding your line there would conflict with that.
@tkiesel, the multiplication by 100 was to reduce the number of possible loops (probably to only one, anyway). The addition of this value is necessary before the mod when the imageX or imageY value is negative. Mod is not uniform going from a negative value to a positive one; so the value must be made positive before the mod.
As far as the number of fonts showing up -- you probably have the terminal set to limited output. On the terminal frame menubar, go to 'options>Unlimited buffering'.
@Kokoro, I do not do IPs. Please start a new discussion thread and I will try to answer what questions you may have.
@max_thure, please start a discussion thread on this. Include what code you have for your world and point out which part refers to the object you are adding and having the problem with. The moving or not moving of the 'mainActor' should not have any bearing on how other objects are added into the world.