Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

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?

share|improve this question
    
The Teleport Tethers from Additional Pipes might do something along these lines, but I think they only keep chunks loaded at the server, not at the client –  Tobias Kienzler Jul 7 '12 at 7:37
    
...and also spout: spout.org/threads/… –  Tobias Kienzler Jul 7 '12 at 7:45
add comment

migrated from gaming.stackexchange.com Jul 7 '12 at 8:15

This question came from our site for passionate videogamers on all platforms.

1 Answer

up vote 2 down vote accepted

Vanilla Minecraft implemented seamless relative teleports recently (link), you might be able to get away with just having the server execute a command:

Bukkit.dispatchCommand(Bukkit.getConsoleSender(), "tp player 0 0 0");
share|improve this answer
    
As I've seen no solution to this problem those times, I've just gave up and started work on my own engine :) Thank you for your answer, however, it seems to work very smooth, almost as good as mine implementation :) –  modchan Feb 3 at 15:58
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.