I have a issu with my movement i know that i need to put set instant = 1 to maybe fix the problem but i want to know how it work. like i just put set instant in my code or i need to do something else ?
i can show code if needed.
thanks you
![]() Jul 1 2018, 2:16 pm
Best response
|
|
It's hard to get a grasp at what your issue is without seeing some code. Could you please post it and describe the issue in more detail?
|
yeah sure the issu is that when i move it feel like i lag but it just not instant.
this is the code Code: verb |
It looks like you're trying to stitch several systems together without really understanding what it is you need.
The set instant=1 line has no place in /proc/movement, because that isn't a verb. Nor does usr, for the exact same reason--usr has no place in a proc. The client/North verb is already defined, so overriding its flags with instant=1 won't do anything IIRC. Also you don't want that to be instant at all. The most reliable and smooth way to handle movement is with a move loop. This comes in three parts: 1) The client has a list of held keys and a current movement dir. 2) The client has a verb to handle keydiwn/keyup events and alters the list when that happens, then recalculates the move dir. This verb has set instant=1. 3) There is a global proc that runs in a loop and looks at each client, calling Move() on its mob if the client's move dir is set. |
i already have a movement loop and i have a movement release too.but i did not know for the set instant go only with verb
i Code: movementRelease() //verb |