PDA

View Full Version : [AS2] Platform game problem


renegadegd
12-19-2008, 07:17 PM
hi,
I’m trying to make a platform game based of this tutorial (http://www.emanueleferonato.com/2007/03/31/create-a-flash-draw-game-like-line-rider-or-others-part-5/).

The level that my character is walking through will be bigger than the screen so I changed the code to add the velocity to the background. So the background moves around the player giving it the affect the players moving through the level.

But when the background moves up and hits the players feet it is meant to add 1 to the y value until there isn’t a collision, instead it adds to the background until the player and background are not hitting at all.

Incase i didn’t explain that well at all, heres my game. (http://jonathanchisholm.co.uk/char_jump_2.html)

and Heres my code. (http://utilitybase.com/paste/10320)


When i try it in debugging mode with line breaks it works fine, but playing the game normally it doesn’t.

Any help with this would be great.

Thanks

ldb358
12-20-2008, 09:08 PM
your Code link gives a 404 error

renegadegd
12-21-2008, 12:59 AM
your Code link gives a 404 error


i updated the link.

iv looked at other platform game tutorials and tried changing their code to add the velocity to the background instead of the character, and they all seem to have this same problem.