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

FlyingRabidUnicornPig's Comments

Back to FlyingRabidUnicornPig's profile

Oh, have you set a texture yet?
With source. XD
By the way, looking pretty good so far
Make sure you put the zoom OVER the other actors. Do that with setPaintOrder().
Oh, and you have to post source code as well at some point (challenge rules). Also that'd help when I try implementing the Magnifying methods to a large amount of actors, if you really want to do that with your scenario.
One thing I was thinking of here (and something I've thought for my Magnifying glass as well) is have a class or something in the world that looks at all the actors, and adds their picture to the world bakground, and never really adds the actors to the world (or they're really somewhere else). I'm not sure how laggy this would get, and I'd probably need to make a subclass for actor too. The problem here is that there's a lot of actors. It'd probably work fine with a few, but it'd get laggy here. Maybe I can have it specifically change actors within a certain range of the actor? I'll be working on that possibly tonight and later this week.
Yah, I'll add some stuff, don't expect anything tonight, but I'll add some comments within the next few nights. And I'll see if I can get Actor images as well.
If you want a zoom effect, you can look at my Magnification scenario. However, it only magnifies the background image. Not actors.
You can stop the sound with the stop() method for GreenfootSound. There are two plays, one is play(), and the other is playLoop(). playLoop() will play the sound in loops. play should only play it once.