Custom_states don't activate side-destinated TPs when in set_can_control_movement(false)
Minimal test code
function test_sensor:on_activated()
local s=sol.state.create()
s:set_can_control_movement(false)
s:set_can_control_direction(false)
function s:on_started()
local m=sol.movement.create("straight")
m:set_angle(0)
m:start(hero)
end
hero:start_state(s)
end
Detailed explanation
When i try to make the hero move towards a teletransporter in 'side' destinaton mode while in a custom state, it won't trigger if i disallow movement control using set_can_control_movement(false). Notes:
- doing set_can_control_movement(true) won't make the movement itself trigger the TP but will let the user press the corresponding direction key to do it (as expected).
- a movement started outside a custom state will trigger the TP regardless of any key press condition if the angle and sprite direction match the map side's.
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information