Navigation

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

    What non game workarounds would you like to have

    Coding
    6
    12
    399
    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.
    • SteveZX81
      SteveZX81 F last edited by SteveZX81

      None that I can think of.

      P 1 Reply Last reply Reply Quote 0
      • P
        petermeisenstein F @SteveZX81 last edited by

        @SteveZX81 ok so you have all what you need

        1 Reply Last reply Reply Quote 0
        • AndyG1985
          AndyG1985 last edited by

          Coming from ZX Spectrum coding, I miss flashing text and the ability to define both the "ink" and "paper" colour for sprites. Both easily worked around, though!

          1 Reply Last reply Reply Quote 1
          • M
            Mechanical last edited by

            Flashing Text could be done like that:

            Loop
            Ink() white
            Print(Hello)
            Update()
            Sleep(1)
            Ink(black)
            Print(Hello)
            Update()
            Sleep(1)
            Repeat

            The word Hello will flash white for 1 sec and flash black for 1 sec then repeat

            P 2 Replies Last reply Reply Quote 1
            • P
              petermeisenstein F @Mechanical last edited by

              @Mechanical Dont forget the "" in the print function

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

                Sleep stops the whole thing though doesn't it? So not really useable in-game?

                P vinicity 2 Replies Last reply Reply Quote 0
                • P
                  petermeisenstein F @SteveZX81 last edited by

                  @SteveZX81 sleep is like a pause

                  1 Reply Last reply Reply Quote 0
                  • P
                    petermeisenstein F @Mechanical last edited by

                    @Mechanical Do we have a image.hide or something like this in fuze maybe you could hide and show it but i have no clue on fuze graphical stuff

                    1 Reply Last reply Reply Quote 0
                    • Kat
                      Kat Fuze Team last edited by

                      Not sure what look you're going for exactly, @AndyG1985, but here's some code that can give you text that flashes between different colours and gives you control over the speed

                      col = [white, blue]
                      index = 0
                      colTimer = 0
                      textSize(100)
                      
                      loop
                          clear()
                      
                          colTimer += 1
                          if colTimer % 10 == 0 then  //change speed by changing the 10 here
                              index += 1
                              index %= len(col)
                          endif
                      
                          ink(col[index])
                          print("whatever you want to say")
                      
                          update()
                      repeat
                      
                      

                      To be honest I don't fully understand the line "index %= len(col)" (that was Dave's great idea), but you can add as many colours as you like to the col array and it will cycle through them :)

                      1 Reply Last reply Reply Quote 3
                      • vinicity
                        vinicity F @SteveZX81 last edited by

                        @SteveZX81 said in What non game workarounds would you like to have:

                        Sleep stops the whole thing though doesn't it? So not really useable in-game?

                        You could put it in a function called by a timer...

                        1 Reply Last reply Reply Quote 0
                        • AndyG1985
                          AndyG1985 last edited by

                          Thanks Kat, I think that will come in handy for my inventory system! I had something similar but this looks like it will give more control over speed :)

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