ID:273325
Feb 2 2010, 4:05 pm
|
|
I made a simple pixel movement system (just to make things smoother) by increasing the pixel_x and pixel_y and manipulating it from there and setting animate_movement to NO_STEPS. The only issue is as a side effect from NO_STEPS the client.screen appears to move in blocks. Is there any way to make this smoother and how would I go about doing it? I assume client.pixel_x and client.pixel_y are the way to go, but they seem to be jerky going back and fourth too (I increase it along with the pixel_x and pixel_y of the mob). If the client screen had a NO_STEPS type thing I think that may work...but I have no idea.
|
In response to Jotdaniel
|
|
Wow, thanks a lot! That was exactly what I was looking for. Thanks again.
|
I use animate_movement = NO_STEPS in that demo along with editing client.pixel_x/y at the same time as mob.pixel_x/y, you may have to try reducing tick_lag to get the smoothness your looking for. The only problem is that this can open a whole other box of problems for multi-player games.