I'm working on a game at the moment, but I've come across something that's really stumped me and doesn't seem to be anywhere on here. :/
It's a platform game.
My problem is that I created a collision script which detects the side of a block you hit and changes hspeed and vspeed properly depending on where you hit it, but a really strange error occurs when you fall from the top inbetween two blocks, the player literally teleports about 200 pixels away from where he was to the right or left, I don't even use the X or Y variable to move the player around so seriously whaaattttt !
I've provided a link for download so you can get in there and see what's wrong with it, because I'm lost, even in debug mode looking at the variables for the player hasn't shown anything significant.
It requires that you have GM8, I use pro so I advise you have it too. If you don't have GM8 then I've put the scripts in the zip file with it , there are 4 of them. I've done this because I can't pinpoint the problem anywhere, otherwise I would have posted the specific part of the code :/
Thanks in advance for your help!
EDIT: To recreate the error jump onto one of the single blocks and move to the left and just allow yourself to fall until you land. You'll land between two blocks, not quite on one or the other. The player will then randomly spawn somewhere else.
Edited by Cloud Architect, 11 June 2011 - 09:29 PM.