Thankyou very much for that Nebula. It works perfactly.
I was wondering if you can give me some feedback on how I have determined how the code you have supplied works.
This is how I have explained it to myself.
When there is not a collision you have put that if dudeY is less than 390 (The Ground ) and jumpheight = 10. Then to activate a jump " canjump = 1 and jump = 1" but instead of making him jump upwards hes actually jumping towards the ground. Hes jumping towards the ground because jumpheight has been changed to negative number.
Have I interpreted this in the correct way?
THX again for helping me with this Nebula. Much Appreciated :)
I was wondering if you can give me some feedback on how I have determined how the code you have supplied works.
This is how I have explained it to myself.
When there is not a collision you have put that if dudeY is less than 390 (The Ground ) and jumpheight = 10. Then to activate a jump " canjump = 1 and jump = 1" but instead of making him jump upwards hes actually jumping towards the ground. Hes jumping towards the ground because jumpheight has been changed to negative number.
Have I interpreted this in the correct way?
THX again for helping me with this Nebula. Much Appreciated :)