In a sidescroller 3d proyect i want to change the mouse cursor when it points an enemy , to show the player that he is going to shoot accurately.
How can i do it? thnxs
(i dont speak english , so , please sorry about the mistakes)
In a sidescroller 3d proyect i want to change the mouse cursor when it points an enemy , to show the player that he is going to shoot accurately.
How can i do it? thnxs
(i dont speak english , so , please sorry about the mistakes)
Hi chachighuai,
There may be a more simple way to do this, but the way I found to do what you’re attempting to do is to use a line trace and replace the mouse cursor with a widget that has the image you wish to draw. Below is a playercontroller blueprint that contains all the nodes.
As far as the ‘Set current mouse cursor’ node goes, you’ll need to go into the Project Settings under ‘User Interface’ and set one of the types of cursor (preferring something you don’t usually use) and replace it with the widget. If you had different images for hovering over different enemies, you could use the same widget to swap out different images based off the line trace’s result.
Hope this helps!
First of all:
Thank you¡¡.
Your blueprint works perfectly and i learn a couple of things , wich make me closer to my dream of work creating games
This is how my blueprint looks now, its only a fast sketch, and the next days ill finish it up
what do you think about it? is it efficient? (at least it works…)
Thank you again¡
Chachighuai (Anton Blanco)
It looks great. I see that you added plenty of other stuff like damage and playing a sound cue. Keep it up!