supertux icon indicating copy to clipboard operation
supertux copied to clipboard

Carryable objects and doors

Open Rusty-Box opened this issue 3 years ago • 3 comments

At the moment, when going through a door while carrying an object ,like lantern, trampolines etc. Tux will come out the other side with empty hand and the object slowly floating towards him and back into his hand. This looks very odd looking and very tedious at long distances.

Carryable objects should immediately teleport alongside Tux and remain in his hand when using doors.

Rusty-Box avatar Apr 08 '22 11:04 Rusty-Box

This will be difficult to work if doors move Tux across sectors, as it imply moving an object from a sector to another and I'm not sure to what extent the game supports that. An easier fix would be to forbid carrying objects through doors entirely for consistency, and make Tux drop any carried object when teleporting.

Semphriss avatar Apr 08 '22 15:04 Semphriss

Doesn't Tux himself count as somekind of object?

Rusty-Box avatar Apr 08 '22 15:04 Rusty-Box

Tux is indeed an object, but he isn't "transported" across sectors; there is always a Tux that is created whenever a sector is, and the only information carried over is the command to make Tux spawn at a certain location. Carried objects can't really use the same mechanic.

Semphriss avatar Apr 08 '22 16:04 Semphriss