Leo32
Getting back into it...
- Joined
- Sep 21, 2007
- Messages
- 987
- Solutions
- 14
- Reaction score
- 532
I have a lost woods style quest with an endless repeating wood.
3x3 copy of an area that teleports you to the other side until you either leave via the exit or walk the appropriate directions to get to the end.
Using an onStepIn or onStepOut movements trigger means the teleport happens immediately on leaving the previous square, which leaves a jarring screen-hop.
(In a perfect scenario for the teleport to 'look' seamless, you want it to occur after you've moved into the teleport square and the walking animation has finished, but not too slow as to happen after you take the next step).
The way I've overcome is via using creature:getSpeed() and adding a variable delay to the player:teleport - depending on their speed.
This seems to work fine, but this is a local environment so I have 0 lag and therefore can't theorize if this even work in production where ping delays are involved and how that messes with things.
I'm wondering if there is a smarter way of doing this that I'm just not aware of?
3x3 copy of an area that teleports you to the other side until you either leave via the exit or walk the appropriate directions to get to the end.
Using an onStepIn or onStepOut movements trigger means the teleport happens immediately on leaving the previous square, which leaves a jarring screen-hop.
(In a perfect scenario for the teleport to 'look' seamless, you want it to occur after you've moved into the teleport square and the walking animation has finished, but not too slow as to happen after you take the next step).
The way I've overcome is via using creature:getSpeed() and adding a variable delay to the player:teleport - depending on their speed.
This seems to work fine, but this is a local environment so I have 0 lag and therefore can't theorize if this even work in production where ping delays are involved and how that messes with things.
I'm wondering if there is a smarter way of doing this that I'm just not aware of?