Jump to content

  • Log In with Google      Sign In   
  • Create Account


Java 2D Collision problems with running applet to test


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
No replies to this topic

#1 StrangeTurtle   Members   -  Reputation: 133

Like
0Likes
Like

Posted 27 July 2012 - 09:48 AM

hi
I am having collision problems and it stopped my progression in learning java Posted Image... (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, 28 July 2012 - 04:39 PM.

"Oh, God, I'm nervous. Two of my three hearts are having attacks." -Zoidberg
Site: http://www.strangeturtle.com


Sponsor:



Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS