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

bourne's Comments

Back to bourne's profile

BUT, these codes won't appear until my new project is ready to be released. And I will not need to update all my other scenarios again to enable the codes.
I don't want to reveal too much, but user unique codes found in my other scenarios will unlock things in my new project. And it's in its final stages of development. =)
This seems to be the same scenario as BrokepPiece's DrawWay0.2.4 ? http://www.greenfoot.org/scenarios/10059
Do you have Busch2207's permission to upload his scenario? http://www.greenfoot.org/scenarios/9908
Am I the only one getting the exceptions when the scenario is running? : java.lang.IndexOutOfBoundsException: invalid hotSpot at sun.lwawt.macosx.CCustomCursor.<init>(CCustomCursor.java:83) at sun.lwawt.macosx.LWCToolkit.createCustomCursor(LWCToolkit.java:239) at FightWorld.changeMouseImage(FightWorld.java:68) at FightWorld.<init>(FightWorld.java:24) And the following repeated: Exception in thread "AWT-EventQueue-2" java.lang.NullPointerException at greenfoot.WorldVisitor.toCellFloor(WorldVisitor.java:86)
I've checked the code, and I don't see anything wrong. I can only imagine that happening if you some reason were disconnected from the UserInfo server or were not logged in.
And correct, they are moved/scrolled via the translate method.
There are a few scrolling "engines" I believe, but I always prefer building on whatever context I am coding. You can, but give attribution please.
My code is reliant on there being a Player (an Actor you are wanting to center on), and a type of Actors that should be scrolled (in my case I had them all of type GameObject). If you need more help, please start a new discussion with details of your game and code.