Navigation

    Fuze Arena Logo
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    • Help
    • Discord

    My Brick wall

    Help
    3
    6
    310
    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.
    • RiskyCrimson
      RiskyCrimson F last edited by

      ever since I saw how jougjonbu input works I've been trying to recreate it. Before I can attempt that I am stuck because everytime I try to input something I get stuck in an infinite loop. If I take away the loop the screen wont hold and the program will end.

      1 Reply Last reply Reply Quote 0
      • N
        Nisse5 F last edited by

        Yes, the code...

        while game == false loop
            Start()
        repeat
        

        ...will never exit since "game" will always be false here.

        I don't think you need to loop that.

        Also, stats() is never called as I can discover, so you will never see any input, right?

        1 Reply Last reply Reply Quote 0
        • RiskyCrimson
          RiskyCrimson F last edited by

          So how do you keep a screen going without using the loop

          N 1 Reply Last reply Reply Quote 0
          • RiskyCrimson
            RiskyCrimson F last edited by

            Stats was my could be solution but it did not work

            1 Reply Last reply Reply Quote 0
            • N
              Nisse5 F @RiskyCrimson last edited by

              @RiskyCrimson said in My Brick wall:

              So how do you keep a screen going without using the loop

              If you want to read the keyboard in a similar way to @Jongjungbu you need to read the keyboard state in the same loop as you're displaying the screen, using getKeyboardBuffer().

              Jongjungbu 1 Reply Last reply Reply Quote 1
              • Jongjungbu
                Jongjungbu F @Nisse5 last edited by

                My IF demo is shared if you send me a friend request. Unless you already did send. So you should be able to analyze the code, if that helps.

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