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

Builderboy2005's Comments

Back to Builderboy2005's profile

There are several elements that go together to make the scrolling work properly. The first is the scrolling background. I have two variables tilex and tiley. These represent the camera location in a way. When tilex and tiley are both zero, the top left of the screen is the same as the top left of the world. When tilex increases, the camera moves to the right, and when tiley increases, the camera moves down. Every frame, I redraw the background using my tilemap data and the correct camera offset to give the correct illusion that the camera is moving. The second part is my new class called ActionActor. This contains many features which help out the game, but primarily it is a way to create the scrolling illusion. Each ActionActor has it's own myX and myY variables that represent the objects GLOBAL location. That is to say, even if the camera moves, myX and myY remain the same. Then at the end of each frame, every ActionActor transfers it's global location into a local location by subtracting tilex from its myX, and tiley from its myY. Since this is part of the ActionActor class, all objects that are a subclass automatically 'insert' themselves into the scrolling world. Now, with all this in place, we have two thing. We have a world camera that can move around and look at the world. And we have objects that will move accordingly when the camera is also moved. Making the camera is easy at this point. Since tilex/tiley represents the camera location, we just need to set tilex/tiley to the location of our character. It's a bit complicated, but you can always check out the source code if you want!
Oh noes! I forgot that I was in the process of updating the menu as well >.< I'll work on getting that updated
This is extremely well made, and very nicely polished! The control scheme and general idea is definitely awesome, and the different game-modes simply add to the action!
I would appreciate it if you didn't upload my own scenario under your account.
When you get to the room with the 4 generators and the beams of light, there are two paths you can take, and each path yields a single cable. The path to the left requires no flares, but the path to the right does. Which path have you not been able to complete? I'm guessing the right one, and since you are having trouble, and since that section is going to be worked on some more, for now I will let you know that if you press space, you kinda sprint at unreasonable speeds :P It's a little code I put it for testing that you can still use to maybe help get through faster so your torches don't burn out too quickly
Denzien, what goes wrong for you? What version of Greenfoot are you running? And theDoctor, what part specifically are you stuck on? I know that the maintenance section is a bit hard to beat right now, that will definitely be worked on in the next update.
Make sure you've pressed the run button, and then could you tell me if anything has been output to the Java console?
Calm down and tell me what is going wrong, it's working fine for me.
Updates to this game unfortunately come slowly, but be sure that updates are continuously being worked on :) There will most likely be an update after the newest Greenfoot version is released.