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

AwesomeNameGuy's Comments

Back to AwesomeNameGuy's profile

I know, I'm not worried though, the squares are just temporarily something to shoot at. I probabily speant more time trying to hit them with the slingshot in the scenario than writing the code for them!
Pretty cool.
Wow this is pretty cool! I got stuck but will definately try again when I have more time!
Thanks kiarocks! @BuilderBoy have you done any work on your rigid body collision solver? I would be interested to see how you would approach the problem.
Try changing the position of Mario by an amount less than one, and then casting it back to an int when you setlocation(). For example, I don't know how you coded it, but you can trysomething like this: double mariolocationx; // the x location of mario double speed = 0.7; // the speed of mario if (Greenfoot.isKeyDown("right")) { // change location of mario by less than one mariolocationx += speed; } ... // other code // now set the location... setLocation((int) mariolocationx, etc...); if that makes any sense. just make sure the location is a double. Don't do setLocation(getX() + (int) speed,..); if speed is a double, because I think it will get rounded to the same nearest int every time, and that won't work.
Nice. I had this on my nintendo when I was a kid. Very authentic. Seems a little fast.
Cool!
Thanks! Lol
Here's the source code if you wanted to see it, keep in mind I am pretty much a beginner but that might be obvious! I'm holding off on fininshing this right now, but I will come back to it after I am done with this Java book that I'm reading.