🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    How to get the position on X and Y of an object?

    UIFlow
    2
    3
    5.1k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      ManuXD32
      last edited by

      Hi, i'd like to make a program where a ball follows de player (who is an image), but i can't figure out how to get the position of the player. Thank you all.

      ajb2k3A 1 Reply Last reply Reply Quote 0
      • ajb2k3A
        ajb2k3 @ManuXD32
        last edited by

        @manuxd32 Create two Variables Player X and player Y.
        When the controls change the X and Y values, other code can then read those variable to alter the balls position.

        UIFlow, so easy an adult can learn it!
        If I don't know it, be patient!
        I've ether not learned it or am too drunk to remember it!
        Author of the WIP UIFlow Handbook!
        M5Black, Go, Stick, Core2, and so much more it cant be fit in here!

        1 Reply Last reply Reply Quote 0
        • M
          ManuXD32
          last edited by

          Wow, thank you, sure this works.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post