hyperPad hyperPad Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Login

    Is there a way to remove the decimal value from Get Position

    Scheduled Pinned Locked Moved
    Help and Support
    4
    9
    151
    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.
    • SplitMindGamingS
      SplitMindGaming
      last edited by

      Is there any way to remove the decimal value from Get Position when it outputs the text? Screenshots included.7AB48056-5A7C-4023-925F-7853E77C928A.png 00316E48-16DA-4447-851F-F78D1DF6592D.jpeg

      KamdroidK MelideM 2 Replies Last reply Reply Quote 0
      • KamdroidK
        Kamdroid @SplitMindGaming
        last edited by

        @SplitMindGaming Use the Round Number behaviour. Round to 0 decimals.

        1 Reply Last reply Reply Quote 0
        • MelideM
          Melide @SplitMindGaming
          last edited by

          Put a Round Number behavior. It'll do what you said. It takes a value and... Round it ? Idk how we say it in English 🤦😩

          1 Reply Last reply Reply Quote 0
          • SplitMindGamingS
            SplitMindGaming
            last edited by

            Thanks so where does the round number go into the mix. Or how do i incorporate it. Ive tried placing it within various places on the lineup and imported all the values to the first slot but the number still shows the decimal. Heres a screenshot. What do i put in the first slot and how do i arrange it. Thanks.0CA71E77-E875-4472-8B5C-D079102C63D2.jpeg

            MelideM 1 Reply Last reply Reply Quote 0
            • MelideM
              Melide @SplitMindGaming
              last edited by

              @SplitMindGaming you should put the value of what you want to be rounded and not the set label value. Set label is not even for values, it's for showing something.

              To get it right you'll need to have a value with decimals to test it, then round the value and then you can show it with the set label behavior.

              SplitMindGamingS 1 Reply Last reply Reply Quote 0
              • SplitMindGamingS
                SplitMindGaming @Melide
                last edited by

                @XxWhiteHearrxX so how would I make this work with the setup I have now. For my game I have a text on screen that constantly shows the y position of the character. The screenshot shows is the exact behavior setup on my game to achieve this. Where would the round table go into the mix. At the beginning of the chain, middle or end. 5BC98C7A-E00E-44BE-91C2-0BA7985D5D5B.png

                1 Reply Last reply Reply Quote 0
                • SplitMindGamingS
                  SplitMindGaming
                  last edited by

                  I just figured it out. Thanks for your help guys

                  Aidan_FireA 1 Reply Last reply Reply Quote 0
                  • Aidan_FireA
                    Aidan_Fire @SplitMindGaming
                    last edited by Aidan_Fire

                    @SplitMindGaming Get Position → Round Number (get Position is Input value) → Set Label (round number is input value)
                    Just checking, you can ignore this if that's what you're already doing

                    SplitMindGamingS 1 Reply Last reply Reply Quote 1
                    • SplitMindGamingS
                      SplitMindGaming @Aidan_Fire
                      last edited by

                      @Aidan-Oxley yup thats what I did. Thank you for that. It just really clarifies i did it right.

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