how do i assign a velocity?
Posted: Sun Sep 08, 2013 8:29 pm
i am currently trying to write a gamemode (i cant give any details right now because some people want me to not make it public yet)
it is actualy complete but has one grave problem and i have no idea how to solve it.
i want to assign a certain velocity to a player, like this:
player.world_object.velocity.x = 5
the result is following:
everyone else sees this player getting launched in a specific direction, but the player himself does not seem to receive this information, in other words everyone thinks he is moving , while he himself is just standing still and thus teleporting back to his original position.
i clearly want to avoid using a set_location function beacause it would ignore any collisions with blocks/walls.
In case someone didnt get it (since i am pretty poor at expressing myself):
- player gets pushed in a certain direction
- but teleportes himself back at the end
has anybody an idea how to fix that? I assume i have to send something to the client, no idea what though...
it is actualy complete but has one grave problem and i have no idea how to solve it.
i want to assign a certain velocity to a player, like this:
player.world_object.velocity.x = 5
the result is following:
everyone else sees this player getting launched in a specific direction, but the player himself does not seem to receive this information, in other words everyone thinks he is moving , while he himself is just standing still and thus teleporting back to his original position.
i clearly want to avoid using a set_location function beacause it would ignore any collisions with blocks/walls.
In case someone didnt get it (since i am pretty poor at expressing myself):
- player gets pushed in a certain direction
- but teleportes himself back at the end
has anybody an idea how to fix that? I assume i have to send something to the client, no idea what though...
