Why is it not possible to send different input signals from different scenes?

Godot Version

4.2.2 stable

Question

I’ve created two different scenes for mobile input.
The first one only sends signals like “Input.action_press("move_right")” or “Input.action_release("move_left")”.
The second one sends signals like “Input.action_press("jump")” and “Input.action_release("jump")”.

But when the first one is active, like I’ve sent Input.action_press("move_left"), then the second one never works until I send Input.action_release("move_left").

The first is in no way linked with the second. What am I doing wrong?

You can test it here

Without looking at your code, I am going to assume you are setting some state when the move controls are activated, and resetting that state when the move controls are deactivated. Or you have nested conditionals that cause action checks to be skipped.

The solution was to use TouchScreenButtons

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.