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

    Can you combine text to an Add To Score behavior

    Scheduled Pinned Locked Moved
    Help and Support
    4
    8
    193
    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

      So i realized im taking over the help and support section lol. Sorry about that guys. I promise you i do try everything in my power to figure out before asking for help. My next question, is it possible to add combine text with add to score. I know the simple answer is to make two labels and add the score right next to it. But i needed an instance for my score to say this.

      Coins found
      (Add to score behavior) of 7

      For example if you got 3 coins it will say

      Coins Found
      3 of 7

      I dont really need the top phrase to be within the combine text. I mean it will be nice. But id really like the “ of 7” in the same line as the add to score text. I added a screenshot of my attemp but it doesnt work this way.4DC9B57D-A41D-4BCE-B88C-DF104C8AB264.png

      MelideM KamdroidK Aidan_FireA 4 Replies Last reply Reply Quote 0
      • MelideM
        Melide @SplitMindGaming
        last edited by

        @SplitMindGaming You aren't programming well apparently. I think it would work with only one Combine Text behavior. And also, you didn't put the data of the Score but you have put the Object ID, so it really won't work.

        You should use a behavior that will trigger everytime a coin is collected ( Collided is a great example of a behavior that does that ). You should get the score ( not the object of anything like that, the only score data ) and put it in the first input of combine label. Next you put the " OF 7 " and you set the Label.

        It normally will work. I know you will probably ask me for screens or anything like that but I really don't have the time right now, I have some work to do. But you should be fine with this.

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

          @SplitMindGaming Easy solution is having seperate labels, but putting them together to look like it's 1 label.

          Better solution, store coins amount in an attribute (or even a hidden label), and only use combine text for the display label that the user sees.

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

            @SplitMindGaming Your behaviours are out of order. Behaviours work left to right top to bottom, I can see your top combine text behaviour is using the output of the combine text underneath it, so it's trying to get the output of a behaviour that hasn't even been run yet.

            Can't speak for everyone, but you're not bothering me. This is what the forum is for. I'm pretty sure it was really inactive for a while until you came lol.

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

              @SplitMindGaming said in Can you combine text to an Add To Score behavior:

              But i needed an instance for my score to say this.

              Coins found
              (Add to score behavior) of 7

              For example if you got 3 coins it will say

              Coins Found
              3 of 7

              This isn't too hard. Have a look through this logic (and test it): https://go.aws/390Oex1

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

                @Aidan-Oxley thank you so much for that. By the way to do you have a link to all the games you made. Would love to support and check them out.

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

                  @XxWhiteHearrxX how do you get just the scores data. When i drag out the add to score to the box it doesnt give me that option to choose the data. It just automatically gets the object id.

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

                    @SplitMindGaming There should be a way to view my projects from the Hub. I think I still have a featured project so you can hopefully access my homepage from there :)

                    The other users who have been replying to you on the forum have some pretty good stuff on the Hub too.

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