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

Opalelement's Comments

Back to Opalelement's profile

Nevermind, I figured out that it was done by using another image:)
Thanks for such a quick and helpful response:) Great job making it to begin with:) One more question though, can you tell me which part of the code actually adds the altitude so it has hills and valleys instead of being a flat image?
Thanks for such a quick and helpful response:) Great job making it to begin with:) One more question though, can you tell me which part of the code actually adds the altitude so it has hills and valleys instead of being a flat image?
Is there any way to change the image size? No matter what values I change it doesn't seem to work. I tried adding two to all 64s and 63s as well as changing the 32s to 33s in case they were supposed to be half, but it still won't work. It says this: java.lang.IndexOutOfBoundsException: Y is out of bounds. It was: 64 and it should have been smaller than: 64 I can make it smaller and it will cut the image, but bigger won't work.
I see now why its so small... it has alot of getColorAt in each act:) I am workin on making it faster:)
you stole my stupidness and made it smarter!
The very first scenario I made in Greenfoot was bomberman:) One suggestion would be to have blocks and to make it so that when an explosion hits another bomb, it causes that bomb to blow up. Mine has very basic images and it can be slow sometimes but I will put it up in a minute
Fixed a minor bug in computer ships - I changed stuff and never changed it back, menaing the battleship could intersect the patrol boat (which seemed to happen alot)
Computer now works, uploaded 3 times for these resons: 1. First smart computer release 2. Changed two numbers and two comparison operators that were causing out-of-bounds numbers for smart computer 3. Changed image for the game on GFG and reenabled collision checking (still basic) when dragging ships at the beginning Smart computer still has some bugs like if the spot it wants is taken then it picks a random spot instead of trying a different direction.