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

Super_Hippo's Comments

Back to Super_Hippo's profile

Thank you! Maybe I will make a smaller one in the future when I have more time.
I have exactly this elephant in my game, but it looks bad when it is bigger. Oh and by the way, looks like I did not make that clear, sorry! "I can't solve my problem with the scaling" did not mean that I have a problem with the scaling. It actually meant that I have a problem and wanted to solve it with scaling the images of the actor to a square. But as I said, that did not look well. Then I saw the method drawImage(), so the next idea was, I give the actors an empty image (a square) and draw the other image above that. But that just did not work... Why do I want that square? With a square it would be easier to let the actor know if there is a wall or something right next to it. I have moving AI too, but i decided that one cell has 51 * 51 pixels and not just one. And it looks like that the method getOneObjectAtOffset(dx,dy,class) does not try to find the class from the middle of the picture + dx/dy, because if it would, every class should work with the same values, but they do not. But I think I am fine, I always have some problems that I can not solve. Then I try to find another way to do exactly the same with often 20 times as much source code. As long as it works then, it is good.
Thank you but I can't solve my problem with the scaling because the actor's look bad when they are scaled different. I did not notice it here because they are small enough :) Need to find another way and I will probably, like always, pick the most time consuming one.
CONTROLS: Release Ball: Space Move Left: Left Arrow Key or A Move Right Left Arrow Key or A ^^ The ball shouldn't be faster when it moves to the sides. You could import the class Animal. There are the methods move() ands turn(), which let the balls travel the same distance in a given time.
Want to look how you scaled your images, because I saw it last time and it does not work for me, but the source code is missing now while it still has the tag "with-source". Did you just forget it?
Small bug, you can go through elephants if he is moving towards you and you towards him. With a bit luck, they just change positions.
Funny idea :) Things you could improve if you like. - You keep your score when you click the reset button. - Sheeps sometimes spawn at the edge of the screen or over the tent. - The counter is a green foot at the beginning.
The 8 was because the shark (which spawned quite early) seemed to follow me before i could eat a purple fish. The 18 was because a shark spawned right in front of me.
Last ten games: 402, 8, 279, 262, 298, 18, 774, 317, 203, 442 pb: 774