x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

How to create character movement with Mouse X and Y moves

i want create character move, when i move Mouse righ character start move right, and same left, when i try do this its works only with Keybords, when i use input Mouse X its not work. help pls

Product Version: UE 4.18
Tags:
more ▼

asked Feb 21 '18 at 12:47 AM in Blueprint Scripting

avatar image

i_am_so_drunk
1 2 2

avatar image Exonfluxx Feb 21 '18 at 12:49 AM

Please Show your Input Bindings for the mouse X.

avatar image i_am_so_drunk Feb 21 '18 at 01:20 AM

alt text

123.jpg (382.7 kB)
avatar image i_am_so_drunk Feb 21 '18 at 01:22 AM

alt text

1234.jpg (241.2 kB)
(comments are locked)
10|2000 characters needed characters left
Viewable by all users

2 answers: sort voted first

MoveRight>1 Branch won't work because you can't go higher.

I just tried with the base 2D sidescroller, just add MouseX 1 on the based move right input axis, it work fine with no change in CharBP. But you should find a way to init the movement and stop it because the player will need a big mousepad.

more ▼

answered Feb 21 '18 at 11:21 PM

avatar image

CharlyB.Goode
202 2 9 16

avatar image CharlyB.Goode Feb 21 '18 at 11:36 PM

And I don't know what you want to do with the mouseY but if you're looking for a jump function, and even a crouch you can use this and reverse it for crouch and just add a little Delay

alt text

Edit: I just saw it was a 3DSS but I tried it works too, just override the basic inputs

11.png (393.6 kB)
avatar image i_am_so_drunk Feb 22 '18 at 12:30 AM

thanks its realy what i need, thanks all who read this and help!

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

alt text

Set it up like above.

If input axis X > 1 move right

If Input axis X < 0 move left

If you need A visual Let me Know .

:-)

actionmap.png (43.2 kB)
more ▼

answered Feb 21 '18 at 01:33 AM

avatar image

Exonfluxx
379 1 5 8

avatar image i_am_so_drunk Feb 21 '18 at 01:51 AM

Do visual pls, i try but stil not work, where i did mistake? alt text

22222.jpg (378.5 kB)
avatar image Exonfluxx Feb 21 '18 at 03:17 AM

alt text

hope-this-helps.png (217.2 kB)
avatar image i_am_so_drunk Feb 21 '18 at 09:42 AM

not work for mouse, if i put Keybords like AWSD it work perfect, but with mouse not work

avatar image Exonfluxx Feb 21 '18 at 02:43 PM

Check your player controller and make sure its not overriding anything. works fine for my top down test.

avatar image i_am_so_drunk Feb 21 '18 at 07:44 PM

i try ths in sidescroller, and after you words go to top down, its works in top down but realy strange, and dont have idea why not works in side scroller

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question