logo hyperPad Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Login
    1. Home
    2. Hayden
    3. Topics
    H
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 2
    • Best 0
    • Controversial 0
    • Groups 0

    Topics created by Hayden

    • H

      Add Friend system

      Help and Support
      • • • Hayden
      3
      0
      Votes
      3
      Posts
      74
      Views

      RobinsonXR

      All usernames should be inside an array, let's call this array Users.

      When searching for a name, you can loop through the entire array and check for usernames containing what you typed.

      For example, if you typed dog, all usernames containing dog should pop up. dog282, somedog and doggy are examples that follow this condition. Note that hyperPad that have a built-in feature to check if a text contains something, so you will need to make your own.

      So searching for dog should check for usernames in Users for keyword dog.

      All results should be placed in an another array, let's call this Results. This is where all the desired usernames will be after a search.

      After looping through Users, now you can loop through Results to get what you want to show. You can use Get Array Count to show the number of results or make a list appear.

      I know you have a lot of questions on what to do, but I don't know which ones you're going to ask. Feel free to ask me any questions! 😁

    • H

      How can I have a player pick up a coin and collect it and save it?

      Help and Support
      • • • Hayden
      2
      0
      Votes
      2
      Posts
      360
      Views

      MurtazaM

      Our getting started guide has a section on picking up coins and adding it to a score.

      To make it save, also use the save behaviour and output the score to the save behaviour. This will save the value each time you pick up the coin.

      Then on the project start use the load behaviour to load the previously saved value and set the score and label to that loaded value.