![]() |
Ugh, player keeps sticking - Printable Version +- Mirage Source (https://mirage-engine.uk/forums) +-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61) +--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18) +---- Forum: General (https://mirage-engine.uk/forums/forumdisplay.php?fid=17) +---- Thread: Ugh, player keeps sticking (/showthread.php?tid=395) |
Ugh, player keeps sticking - Obsidian - 30-10-2006 Just converted my packets to byte arrays, and they work for the most part, but for whatever reason when you try to move, the game registers you as moving... but your player doesn't go anywhere. It doesn't disconnect you though you can still chat. i've been debug.printing (yeah that's a verb now), for the past two hours and i can't figure out where there is any actual problem. Anyone had anything like this happen or have any general suggestions to fix it? - Liz - 30-10-2006 So, what does, 'the game registers yuo as moving' mean? Moving = True? Or whatever value it is? Or does the x and y values of the players location actually change? The first, and most likely one, would be caused by a packet not sending or recieving correctly. Where as the second one doesn't make as much sense, but would have directx stop moving. Make sure all of the movement related byte array packets match up. - Obsidian - 30-10-2006 Yeah it really is, Dave. Moving = 1 X/Y Change "playermove" (Call SendDataToMapBut()) is sent. client is the only thing that doesn't update. also, if you're facing left, and you move right, the player will face right, but not actually go anywhere. but then if you press a new direction... like up for instance, the player won't move in that direction, and the game won't even register you as trying to move up. |