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

bourne's Comments

Back to bourne's profile

I just saw this and got excited to implement scrolling through something such as a page vertically. But I don't see a way to also scroll horizontally. Don't know what that would consist of. On a track pad on my mac I can scroll vertically and horizontally with similar motions. And I believe on a typical mouse, when you press in the scroll wheel you can do the same thing.
bournebourne

2011/11/12

Good work. Keep it up! You can make the tanks move in more precise direction when keeping a set of double's for its position in which case you do the following when provoked to move forward, and similarly applied to the shells: private double x, y; private int speed = 1; public void act() { if (Greenfoot.isKeyDown("w")) // key for moving a tank forward { x += Math.cos(Math.toRadians(getRotation())) * speed; y += Math.sin(Math.toRadians(getRotation())) * speed; setLocation((int)x, (int)y); } } public void addedToWorld(World world) { x = getX(); y = getY(); }
No problem. Glad to see it run now. As always looks well polished. Is it just the one wave? Hope to see an update soon!
Excellent environment to test these variables. Ha I like sending 1 against 20 and making him superior, and how they will close in on the 1 and return to formation if they succeed.
Pretty fun to experiment with. Trying to figure out how the attack types affect the outcome? Also the range of 205 doesn't seem superior to 125?
For: Could not find file: Towers/phosphorus/Phosphorus1.png Is the "Towers" folder in the "images" folder?
bournebourne

2011/11/10

Nice I like the running/jumping/throwing animations. Looking good! I think it would be better for the scrolling to keep the player more towards the center instead of the lower left corner though.
Awesome! Have you thought about making this into a scroller?
I would assume the image has the green background in the file. You need to edit the image with an image editing software that supports transparency. In which you select the green and delete. A white and faded gray checkered pattern is usually what indicates transparency. Don't know of any free pc softwares but I have this free PaintBrush program on my mac. I usually use macromedia fireworks for pc but I don't believe it's free. I remember photobucket giving transparency editing functionality. You could actually write code to do this, which actually is giving the motivation to write a full program =)