supertux
supertux copied to clipboard
Carryable objects and doors
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.
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.
Doesn't Tux himself count as somekind of object?
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.