Announcement

Collapse
No announcement yet.

Enabling a cursor for side scroller to aim with

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Enabling a cursor for side scroller to aim with

    I'm trying to design a grappling hook to use in a side-scroller, but I cant find the option that enables mouse input. Ideally, I'd like to have the game trace the vector from the gun to the mouse, and keep going until it hits a solid surface, at which point you could click to shoot the hook at the surface. But first I need to figure out how to enable the mouse in-game and get its relative coordinates.
    Website:http://www.NonLocalitySoftware.com
    Facebook: www.facebook.com/NonLocalitySoftware
    Twitter: https://twitter.com/NonLocality_Dev
    Instagram: @nonlocalitysoftware
    Discord: JBBym8F

    #2
    If you create a PlayerController BP (and set it as default in the GameMode), you can set the 'bShowMouseCursor' option to true.
    Lead Programmer - UE4 Animation/Physics/Audio Team - Epic Games
    Twitter: @EpicJamesG

    Comment


      #3
      Originally posted by JamesG View Post
      If you create a PlayerController BP (and set it as default in the GameMode), you can set the 'bShowMouseCursor' option to true.
      Thanks, that did exactly what I wanted it to do!
      Website:http://www.NonLocalitySoftware.com
      Facebook: www.facebook.com/NonLocalitySoftware
      Twitter: https://twitter.com/NonLocality_Dev
      Instagram: @nonlocalitysoftware
      Discord: JBBym8F

      Comment


        #4
        Hi all,

        i cant find the Option.
        I took the Sidescroller Template but in my Player i cant find the Option

        Comment


          #5
          Yep, i want to say to myself RTFM :-)

          Found it :-D for Blueprint its a little bit tricky, but clear if you know it :-D

          Click image for larger version

Name:	2014-08-28 10_04_14-Test.png
Views:	2
Size:	36.4 KB
ID:	1056013
          Last edited by chinty; 08-28-2014, 04:18 AM.

          Comment

          Working...
          X