![]() |
Sprite Change Error - Printable Version +- Mirage Engine (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: Sprite Change Error (/showthread.php?tid=1767) |
Sprite Change Error - Stomach Pulser - 17-05-2008 I added a sprite change, damage, and heal attribute to my game. Now, the damage and heal work nicely, but the sprite change is buggy. When i walk through it I literally warp through it (I move so fast). And after I head through say up, my characters poisition is not true (it is 1 more upwards than I really am). This goes for all directions (any direction I walk through the SC tile, I get off by 1 in that direction). The change of sprites works though. I noticed this because I would hit my damage/heal tiles impropery after I changed sprites. Here is my sc code (in playermovement on the server side - calculated at the vary end (before it checks for position modification)): Code: ' Check for sprite change Re: Sprite Change Error - Dragoons Master - 18-05-2008 The fast warping thing is probably because of the SendPlayerData. Client side, it changes the player x/y to the actual and zero the x/yoffset. Just add a new packet that will send only the information that changed, PlayerSprite. Re: Sprite Change Error - Stomach Pulser - 18-05-2008 thanks, it works now. Being lazy never works... |