How can I teleport seamlessly, without using interpolation?
Posted
by
modchan
on Game Development
See other posts from Game Development
or by modchan
Published on 2012-07-07T05:44:18Z
Indexed on
2012/07/07
9:26 UTC
Read the original article
Hit count: 353
I've been implementing Bukkit plugin for creating toggleable in-game warping areas that will teleport any catched entity to other similar area.
I was going to implement concept of non-Euclidean maze using this plugin, but, unfortunately, I've discovered that doing Entity.teleport() causes client to interpolate movement while teleporting, so player slides towards target like Enderman and receives screen updates, so for a split second all underground stuff is visible.
While for "just teleport me where I want" usage this is just fine, it ruins whole idea of seamless teleporting, as player can clearly see when transfer happened even without need to look at debug screen.
Is there possibility to somehow disable interpolating while teleporting without modifying client, or maybe prevent client from updating screen while it's being teleported?
© Game Development or respective owner