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

    Using if condition to check if the text input is correct. Please help.

    Scheduled Pinned Locked Moved
    Help and Support
    5
    20
    373
    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.
    • Aries29A
      Aries29 @Aidan_Fire
      last edited by

      @Aidan-Oxley Can you show me the code blocks to use to creat a simple 4 pics one word game here?p in hyperpad? I can't figure out how to make the letters I tap appear in the exact same order on the blank underneath the 4 picture clues. Is it through combine text? Can you please show me a sample code sequence for combine text so i can see how it can combine sentences to describe say a picture of a situation presented through a series of clues of pictures? I rally want to know how it can be used in a word puzzle game like 4 pics one word or typoman in ps4.

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

        @Aries29 I’m not 100% sure how 4 pics 1 word works since I’ve never played it, so all I know is you type a word and if it’s right you win (go on to next level or something) and if it’s wrong you lose (and you have to guess again?). For having letters fill in some blanks, that’ll take some more work, and it would depend on how you have your game set up. How I set it up would very likely be different to how you have it set up. Anyway here’s a picture that hopefully helps a bit:
        0_1517049977590_7466F219-F55A-42C7-B464-604707BE99F2.png
        Also, to upload a picture, while making a comment you should be able to find an upload symbol (cloud with up arrow in it) above the area you type your comment.

        Aries29A 1 Reply Last reply Reply Quote 0
        • Aries29A
          Aries29 @Aidan_Fire
          last edited by Aries29

          @Aidan-Oxley Thanks for the reply once again sir! Since you have not played 4 pics one word, then let me tell you that what happens there is that instead of typing yor answer using a keyboard, you "tap" your answer from a row of random letters generated in the game. And your tapped letters appear in the exact order you tapped them inside the blank which in turn checks your response as soon as you are done. See also my sample picture below.
          0_1517051626765_0B5359A1-29E2-459E-9AB2-E258AD14636B.jpeg
          (As you can see, the letters are alredy given. The player would simply tap the letters and they will appear on the individual blanks on top in the order in which the player tapped them. Notice that the player has already tapped the letters D A and T. Once he taps E, he will get a feedback that he is correct but once he taps something else, the letters in the blanks will blink or momentarily change their colors as a feedback that the player is wrong.)

          Aidan_FireA 1 Reply Last reply Reply Quote 0
          • D
            Deeeds
            last edited by

            @Aries29 type this into google:

            4 pics one word template

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

              @Aries29 Ahhh I remember now. I should’ve just researched that myself. I think I could make this work in a project (but would be too hard to explain by screenshots and text). I could try make a small sample project and give you a link to it. How do you have your project set up? Each subject or word to guess is a new scene, or they are all loaded in the same scene (harder but more efficient)?

              Aries29A 1 Reply Last reply Reply Quote 0
              • Aries29A
                Aries29 @Aidan_Fire
                last edited by

                @Aidan-Oxley I'll let the players encounter two or three word puzzles on a scene (level). I did search the phrase you gave me and got some assets for four pics one word.😊

                Jack8680J 1 Reply Last reply Reply Quote 0
                • Jack8680J
                  Jack8680 @Aries29
                  last edited by Jack8680

                  @Aries29 Took me a bit longer than planned, but here's an example project with the typing like that: http://bit.ly/2rLpnNe (paste into safari to download)

                  The logic is a bit complicated since it's calculating the position of the answer squares based in the length of the answer (to centre it) and it's calculating the position of the usable letters from an array. I can try to explain it if you want.

                  Aries29A 1 Reply Last reply Reply Quote 1
                  • Aries29A
                    Aries29 @Jack8680
                    last edited by

                    @Jack8680 Oh my God...this case is closed when I saw that sample Jack. You are amazing. So much that...I would like to be your apprentice right now.

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

                      @Aries29 Ok, here’s my basic sample project for 4 pics 1 word type game: http://bit.ly/2DIGLUm
                      You’ll find logic in each of the hidden letters (above their line spaces), which just decides whether that letter space is next (you pick your letter, the letters fill in from left to right above their spaces). Logic in each of the shown letters simply makes them broadcast their letter to the letter spaces and then hide themselves (because the letter has been picked, it cannot be picked again). Logic in the ā€œGuessā€ button when preset determines whether you have entered the correct word or not, then resets everything. Hope this helps :)

                      Aries29A 1 Reply Last reply Reply Quote 0
                      • Aries29A
                        Aries29 @Aidan_Fire
                        last edited by

                        @Aidan-Oxley Thank you so much too sir!!! God this forum is so wonderful with talented programmers like you and Sir Jack!šŸ˜„

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