[PAPER2D] How to make a sprite follow the mouse cursor properly?
I made some coding with our project making a sprite follow a mouse. I did it but its movement is limited with only a small portion of the screen. So how do I code it so that the sprite follows the mouse cursor to every part of the screen on different screen sizes?
asked Jan 11 '15 at 08:45 AM in Blueprint Scripting
Inside of your Controller you have the node "Get mouse position" (or "get cursor position"... I always forget which).
This will simply return the current position of your cursor on the screen in pixels which will therefore work for every screensize.
If you have a 3Dish level you could also do a "Get Hit Result under Cursor" to get the location inside of the level.
I hope this helps a little.
answered Jan 12 '15 at 01:42 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here