Navigation

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

    Here is a PDF version of the FUZE Help. Please download and let us know what you think!

    Announcements
    15
    28
    2150
    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.
    • mixaal
      mixaal F last edited by

      On page 569 - "Tutorial 10: Variables Extended" I think it might be good to say that global variables can be modified from the functions by assigned values into them. And if this behavior is not intended the local keyword should be used. Example

      fh = f1()
      f2() // here fh is modified to be 2
      f3() // local modifies the variable scope
      function f1()
        h = 1
      return h
      
      function f2()
       fh = 2
      return void
      
      function f3()
        local fh = 2
      return void
      
      1 Reply Last reply Reply Quote 0
      • M
        MikeDX last edited by

        There's a local keyword??

        mixaal 1 Reply Last reply Reply Quote 0
        • I
          iawima last edited by

          Thank you, found % was expecting it to be mod :-) and << and >> might be fun.
          The function documentation might benefit from also having an example of returning a variable. (The tutorial covers it perfectly)
          Love the colour names, but they don't all fit on the page, crimson? khaki? azure?
          TextWidth that could be a bit useful.
          The Basic Game tutorial is fantastic.

          Exception work everyone.
          Ian

          1 Reply Last reply Reply Quote 1
          • B
            BarenDK F last edited by

            Very nice PDF. I assume it is auto-generated so please make sure that it is updated whenever the online https://fuzearena.com/help is updated.
            One very important improvement to include in future edition would be to make the command reference sections each link to a list of links to the commands contained in that section. For example, when I select the "2D Graphics" section, it should link to a page containing an alphabetic list of functions related to "2D Graphics". This would make it much faster to get an overview of available commands and browse to the one of interest. I believe this is also how the online help is organized.

            pianofire 1 Reply Last reply Reply Quote 0
            • mixaal
              mixaal F @MikeDX last edited by

              @MikeDX Yes there's local and also found const :)

              M 1 Reply Last reply Reply Quote 0
              • pianofire
                pianofire Fuze Team @BarenDK last edited by

                @BarenDK Thanks! Yes it is auto-generated. Going forward we are going to have planned releases where the Help (PDF and HTML) will be kept inline with the release. I am open to suggestions about the tables of contents. It has been left out at the moment because it is already 700 pages long. I suspect that at some point there will have to be two versions: one for printing and an eBook.

                1 Reply Last reply Reply Quote 0
                • M
                  MikeDX @mixaal last edited by

                  @mixaal said in Here is a PDF version of the FUZE Help. Please download and let us know what you think!:

                  @MikeDX Yes there's local and also found const :)

                  You say found, where?

                  Does it actually do what it should?

                  @Luke @Dave Can you shed light on this?

                  mixaal 1 Reply Last reply Reply Quote 0
                  • K
                    konradk last edited by

                    Wow, great news! Thank you!
                    Did you consider publishing it on Github? It would be easier to track changes and suggest changes or report misstatement.

                    M 1 Reply Last reply Reply Quote 0
                    • M
                      MikeDX @konradk last edited by

                      @konradk said in Here is a PDF version of the FUZE Help. Please download and let us know what you think!:

                      It would be easier to track changes and suggest changes or report misstatement.

                      If you find any problems with the help or the program, please report any help issues to the bugs category :)

                      1 Reply Last reply Reply Quote 0
                      • mixaal
                        mixaal F @MikeDX last edited by

                        @MikeDX I just tried to type them into FUZE ;-) I think local can be used in bash? and const is quite common across various languages. The story behind trying out local was that I didn't expect a global variable modification from a function. I know it's possible to read globals but really got confused when a global variable got changed from within a function without any warning about that in the interpretation/compilation time.

                        Unfortunately const does not work as declaring a constant, rewrites are possible in FUZE, but no syntax error is given on const (not a)keyword. The local just worked for me ;-) as described in the example above - wondering if it's just undocumented or some co-incidence and whether local really modifies the variable scope - hope it does - rewrote all my functions with locals yesterday.

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

                          It's not a good idea to add keywords that are not known to be part of the language into your code.

                          Have raised the fact that it does not throw an error as an issue. Hopefully will get some clarity either way.

                          mixaal 1 Reply Last reply Reply Quote 1
                          • mixaal
                            mixaal F @Martin last edited by

                            @Martin I see I just thought it's a matter of missing doc but it might no be so ...

                            1 Reply Last reply Reply Quote 0
                            • A
                              Ancientspark F last edited by

                              Oh thank heavens! Sooo happy to see this a reality now! Thank you thank you thank you!

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

                                Thank you for providing this pdf version of the documentation. I have installed it on my iPad for ready reference.

                                It was on my wish list.

                                Jeff

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

                                  Again thank you for doing this. So nice to have it handy off the side.

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