0 votes

How do I make it so that "Button" (in this case I named it "Right")
Do an event/input from the input?
Like, make it so that it does "move_right" in the input map when pressed?
This is a touchscreen and pc application and I can't get the touchscreen buttons to work either.
It also needs to be able so that you can use more than 1 of these and at the same time too.
Like one for going left, jumping, and others too.

asked Mar 12, 2019 in Engine by Ultraic (12 points)
recategorized Mar 12, 2019 by Ultraic

2 Answers

–2 votes
answered Mar 16, 2019 by flurick (888 points)

I'm sorry if I was unclear but that's not what I mean sir.
I meant not to make a button make a new inputevent in the inputmap but make a button
do an inputevent, as in when I press this button, do "moveleft", not make "moveleft"
Sorry if I was very unclear but thanks for answering!

+1 vote

This might be what you are looking for: Input.actionpress(inputname)

answered May 2 by Kaan Alpar (31 points)
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.