grandseiken / foundryvtt-multilevel-tokens

Multilevel tokens for Foundry VTT
MIT License
41 stars 20 forks source link

Player controlled tokens moving through a teleport area have problems with cursor movement in next scene #113

Open Matt-Webb1 opened 2 years ago

Matt-Webb1 commented 2 years ago

When a player controlled token moves into a square with a teleport area set up, the token correctly teleports, but movement via cursor keys is affected in the next scene (i.e. pressing 'left' might move the token 'up-left' instead).

This may happen in other circumstances, but the the one currently affecting the scene is one with two teleport areas stacked in the same square (one 'IN' and one 'OUT', so only one should be activated) and then in the destination scene the corresponding two teleport areas are stacked in the destination square (one 'IN' and one 'OUT). Functionally this works perfectly as the DM (i.e. Token teleports to other scene when entering the square, and arrives in the other scene on the teleport square but can freely move off it) and does not have any problems with cursor movement. However, despite this also functionally working perfectly as a player logged in via-browser it does seems to exhibit this odd cursor movement side-effect issue after the first teleport.

Has been tested on player browser Chrome and Brave.

grandseiken commented 2 years ago

This can sometimes happen if the teleport regions are oddly aligned and/or you don't have the "snap to grid" teleport option enabled (the token then doesn't end up exactly in a grid square and this can confuse foundry). Are you sure that's not the problem?

Ashmalech commented 2 years ago

I've encountered the same issue and I spent a while with a player trying to replicate the exact conditions that caused it. Here are our findings:

I just resolved it by moving the transition one step further down the stairs so that players aren't walking into the wall, hopefully others can do the same and this information might help identify what's going on.

iamthehorker commented 2 years ago

Also experiencing this bug.

This seriously affects the usability of this module as it completely disorients my players after teleportation.

Tested on Firefox.