0 votes

I have two Kinematic2D bodies in the same scene. Each has a different function, and different assigned keys, but when input is given, I don't want both characters active.
Simple example: Actor A can only jump up and down, Actor B can only move left and right, but I do not want Actor B to be able to move while Actor A is jumping.

I'm assuming this is possible, but I'm wondering where to start.

Do I connect a button/switch to a global variable that is then checked by the script of each actor in their physicsprocess() in order for the actors script to determine that movement is allowed? Or is there a built in means of doing such things?

asked Apr 9 in Engine by toec (29 points)

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.