I’ve just hit my first major roadblock in my game development process: input contexts.

My goal is to have my first input context be for the “Player” (CharacterBody2D) to explore the level. This is WASD input for basic movement.

The second input context will be for the “Player” to pause movement after the ENTER key is toggled. This will disable WASD input for this node. This will also trigger a separate SELECT/MOVE controller instance (not “Player, but also a CharacterBody2D) where instead you play as a selection box that the WASD is now connected to. This controller can interact with “Entity” (CharacterBody2D) to pick them up and place them elsewhere, which is not a function of the “Player” class.

How would I achieve switching between...

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help