Announcement

Collapse
No announcement yet.

Using the touch screen to draw a path that an object will follow

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

    Using the touch screen to draw a path that an object will follow

    Hey everyone,

    So I am currently designing a small mobile top down puzzle game and have begun prototyping in Unreal 4.

    What I am trying to figure out now is how to implement the core mechanic. The core mechanic of the game is that in order for the player to move their character throughout the puzzles, they need to draw the path they wish the character to follow with their finger. They can re draw it as many times as they like, and it is only when they hit play that the character will actually follow the path that the player set out for them.

    So broken down into pieces I am trying to figure out :
    -How to draw a line using touch input
    -How to have the player pawn receive this input as a path to move along

    Any suggestions and advice would be greatly appreciated, as I am really stuck here! Thanks so much!

    #2
    you wanna project the touch location (as it gives you the screen coordinates) to a world location, then use a nav mesh + move to point command. the "top down example" starter pack behaves like this

    also fyi there is a marketplace asset that addresses this - https://unrealengine.com/marketplace...uch-navigation
    ZOMBIE TOWN AHHH (ANDROID/STEAM) | RIDE SHARE EMPIRE (ANDROID/GAME JAM) | NEVER NOT KNIGHT (ANDROID/GAME JAM) | TWITTER | MY UE4 TUTORIALS | ANSWERHUB

    Comment


      #3
      Awesome this is perfect thank you so much!!!!

      Comment

      Working...
      X