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

darkmist255's Comments

Back to darkmist255's profile

Great work! If you can optimize it you could really go somewhere with this idea! Maybe try caching the results of the lighting calculations so they don't reload, but I don't know how you've coded it so all I can offer is a thought. Nevertheless, incredible!
This computer is fairly old, don't assume that everyone will have my problem. I'm running XP, 2Gb RAM, 2.4Ghz CPU.
I don't see piece images, just boxes. Unless that was intentional.
I just saw about a billion brackets. I think I'll try to interpret the drawing method when I'm in a better thinking mode.
Thank you so much! I've been trying to replicate this with very little success.
I keep the myX/myY variables in the actor class, then keep the cameraX/cameraY variable in the world class. I just tell the actors to position themselves according to the getWorld().cameraX/Y.
Ah yes, that makes sense. Although, I've used the tile method before with both negative and positive tileX/Y values and it works out fine, just depends how you saved them.
@EpicAlbino to simplify what Builderboy just said, the idea goes like this: myX is where your actor is really "standing" tileX is where the "camera" is looking from so for the actor, you would just do something like "setLocation(myX + tileX, myY + tileY)"
I'd love to know what you did for the particles. I'm trying to write some particle code but I'm having difficulties.