godotMonoNoob A TileMap Godot class doesn't have a field called "nodeList", this is what you are trying to get using Get("nodeList"), but this field doesn't exist. Where are you doing something else before with "nodeList" and the TileMap? To help you better we need more information about what you have and what you want to achieve.
betauer

- Nov 15, 2023
- Joined Nov 8, 2022
- 1 best answer
- Edited
Yes, you can use Node.ToSignal(), like this:
await ToSignal(GetTree(), "idle_frame");
- Edited
- Best Answerset by Malzar
Keyboard, joystick and mouse buttons work well in _Process, where you can check using InputMap if one button is pressed or released. To control the mouse motion, you should use _Input(InputEvent e) in this way:
public override void _Input(InputEvent input) { if (input is InputEventMouseMotion motion) { GD.Print(motion.Position+" / "+motion.GlobalPosition); } }
If you already have your code in _Process and don't want to mix your logic between _Process and _Input, you can do this in your _Process
Alternatively, it's possible to ask the viewport for the mouse position:
GetViewport().GetMousePosition();
What is "nodeList" in your scene? Any child node in your current node (or any other) should inherit from Godot.Node, and List<Vector2> (or Vector2) doesn't inherit from Godot.Node.