usr.loc = locate(usr.x+1,usr.y,usr.z)
When I use this he walks to the space next to him...why? If I use usr.x+2 he teleports there. Why can't he teleport to the space next to him?
ID:263220
![]() Jul 15 2006, 10:32 am
|
|
usr.loc = locate(usr.x+1,usr.y,usr.z) When I use this he walks to the space next to him...why? If I use usr.x+2 he teleports there. Why can't he teleport to the space next to him? |
I'm trying to entirely rewrite the movement proc for a project I'm working on. So, disabling the animation for movement wouldn't be a bad thing as long as rewrite it with something like a flick proc in there right?
|
Loduwijk wrote:
atom/movable has a variable animate_movement that you can disable. However, last I knew you could only change this at compile-time, not at runtime mid-game. You can change it at runtime. :< |
Wonderful. Once upon a time we couldn't, and we had asked for it to be able to be changed at runtime, but I was not aware that this had been fixed.
(edit) At least, I think so... Maybe it was pixel_step_size that we couldn't change at runtime. Whatever it was, one of those movement variables for movable atoms was compiletime only. |
Sure, you could do that. Remember though, this will stop you from sliding smoothly between tiles even for normal movement as you are walking around the map.
|
atom/movable has a variable animate_movement that you can disable. However, last I knew you could only change this at compile-time, not at runtime mid-game.
And I also have a tip for you. get_step will get the space next to you much easier. get_step(usr, EAST) will return the same thing as locate(usr.x+1, usr.y, usr.z)