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

SPower's Comments

Back to SPower's profile

About the double values for Actors, I don't think it's necessary. It won't give you a noticable effect, because pixels are still adressed using integers, not floating points. Sure, you have more variety in how much you can move each act cycle (you can then do 1.5 instead of 1 or 2), but that's just on paper: displays can't display sub-pixel movement.
@GreenHouse of course, greenfoot was designed to educatie people, and I don't think there's anything wrong with that. It's just that I don't think the Greenfoot website was built to exchange your scenarios with your teacher. And I must say, great idea! Maybe you should mail it to the Greenfoot team (support@greenfoot.org I think, not sure)
Agreed with Entity1037 on the second point: maybe schools (or someone else?) need to find another way to exchange the final projects, instead of posting them on greenfoot.org
SPowerSPower

2013/10/15

@danpost sorry for my bad reading again, and of course I won't mind! The more programmers, the more fun!
SPowerSPower

2013/10/15

@danpost The key to making it fast was only drawing and scaling the actors that the magnifier can see, not all the ones in the world.
SPowerSPower

2013/10/15

@joeschmoe I think my magnifier class is fast enough to do the job: http://www.greenfoot.org/scenarios/9618
SPowerSPower

2013/10/15

You can also just draw all the actors that you want to magnify onto a copy of your background image, and magnify that image. That way you still add actors to the world, so collision detection still works.
SPowerSPower

2013/10/14

You should make the sniper actually zoom into what it sees, and make the mouse be really at the middle of the sniper :)
s'arrĂȘte!