Jump to content
  • Advertisement
Sign in to follow this  
StrangeTurtle

Java 2D Collision problems with running applet to test

This topic is 2209 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

hi
I am having collision problems and it stopped my progression in learning java sad.png... (ive put it down for a couple of weeks) As it seems to just turn into trial and error as I cant seem to get the results wanted.

I did have the charcter bounce off the wall in the negative velocity and this produced a glitchy very bouncy person
It seems as I solve one symtptom another comes up such as sticking to walls or passing through walls in one direction

the applet can be tried tested here
http://www.strangeturtle.com/JAVA.html

sprite sheet is here
http://www.strangetu...spritesheet.gif

view the full unglitchy(formatted) source code here
http://www.strangetu...range61112.java

Ive also attached the current glitchy version which has jumping in it.( just unzip and run the strange61112html.html)
i dont know where the problems are if they are in key released/pressed or in plymove or all of the above.

my goals were to have stable jumping and walking of course any hints in the right direction would be appreciated so i can move forward with other game features.

thanks!

edit: In an effort to increase replys:) all good replys that directly result in me solving the jumping collision glitches I will provide advertising link/picture on my web page to a link of your choice for atleast a year or more. Edited by StrangeTurtle

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!