Movement with Left mouse click and attacking on the Right

Hi there, this is the first time I’m doing this so sorry if I’m not wording things right!

So I’m working on a TopDown game with mobile settings.

I set up the Left mouse click for movement and the Right for attacking (punching), but the problem is when I play the game I can only move the character and it’s moving with both the left and right clicks.

I’m wondering if there’s something I’m missing.

Thx in advance!

Under your project settings hunt down the input section and check out what events the left and right mouse buttons are bound to. Then go into your character blueprint and see what these events are triggering. Between the two places it should be easy to find what’s going on.

Thank you so much for responding

Okay for the input settings I have Left Click for movement and Right Click for Punch

and I checked my character’s Blueprint and this is all I have

so I’m wondering if I have to create a setting for moving,but the character moves perfectly fine when I play it.

well if you started with the top down template it will have already wired up basic movement for you.

So is there a way around that?

i don’t understand what problem you’re having now to say.

what I’m saying is there a way around the fact it already give me “wired up basic movement”

what could I do to fix that. If you know.

if you don’t like the nodes it gave you by default, i guess you would just select whatever you don’t want and delete them.

Hey sorry for not reasoning soon.

How do I set up a input for the character to respond to to and I don’t mean going to the projects settings, cause I already did that.

I mean within the blueprints how do I have the character react to the command?

Well you did it already, everything that is wired to “Pressed” in your “InputAction Punch” will be executed after you press the button which is set to this action in your project settings.