How do I get the sprite to update whenever my mouse is in different locations?
Hi , you have to check constantly the mouse X, Y, and store these variables OldX_mouse OldY_mouse
if the mouse x, y, are different from the saved one, then the mouse was moved, so do your actions and save the mouse xy, in the variable OldX_mouse OldY_mouse
Here the node in the documentation
Get Mouse Position | Unreal Engine Documentation
But how i start buiding those nodes? can you give me a light to how i do that? thanks for your help btw.
Hi, hit the “quote” button to make the people know that you have replyed !
Open unreal engine, start a project or load your .
In the upper part of the screen , find the level blueprint https://docs.unrealengine.com/en-US/…int/index.html
in the level blueprint (but you can do it inside any blueprint, actors… pawn …widgets…)
right click on the area and a menu will popup. that is the “search” (random image of the menu while searching the "get player controller ")https://answers.unrealengine.com/sto…er-context.png
Start writing get mouse, and he will search for the node with that name https://docs.unrealengine.com/en-US/…ion/index.html
This is how you search and add nodes,
is not always easy find the node , you will need a lot of experience and sometimes even Uncheck the little “Context sensitive” in the upperright of the menu.
Here you can take a look on how add variables https://docs.unrealengine.com/en-US/…les/index.html
Once you have created OldX, and OldY, and “compiled” or saved, using the upper left buttons…
You can set the variables, searching for the nodes : Set oldX, and set Oldy.
[quote=“Est_engine, post:4, topic:151218”]
“hit the “quote” button to make the people know that you have replyed !” i’m so sorry, i’m new here.
Thank you so much for helping me, really from the heart. You’re a wonderful person.
You need to see the quote in different formatting^ for the notification to work.
So always make sure the [q-u-o-t-e] tags remain in place and are still intact.
Or alternatively use the @ [username] format to ping someone to the thread.
If you’re doing lots of sprite games ue4resources.com sample projects may help.
For everything else follow the Devs here then locate and take apart their projects.
UE4 is not noob friendly, and the forums are dying, so you may not get much help.