Navigation

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

    Can we get a traditional drawing app

    General Discussion
    17
    32
    2023
    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.
    • A
      AtomAlexander F @Jonboy last edited by

      @Jonboy yes please to all of this

      1 Reply Last reply Reply Quote 0
      • Zypher
        Zypher @Jonboy last edited by

        @Jonboy although would that include mobile restricted users? I dont have a pc and I dont know if there's anything for my s10 for creating models...

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

          So now I have a question for you folks. Is saving arrays as files or whatever so you can have save data for games a thing? I can't port a 3ds game I made on smilebasic because there's no way to save data that I know of. Just curious If that's in your head.

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

            Lookup "File Handling" in the help. It's rudimentry at the moment but it is there for the purpose of game saves

            Zero Division 1 Reply Last reply Reply Quote 1
            • Zero Division
              Zero Division @Martin last edited by

              This post is deleted!
              1 Reply Last reply Reply Quote 1
              • Jonboy
                Jonboy Fuze Team last edited by

                The file handling, if planned well, can be used for level data, hi score saves and just about anything else really.

                It is a single file - treat it like a hard disk, but you need to write the OS for it - this sounds much harder than it actually is, honest!

                For example, You could have the 1st 1,000 bytes for high scores, then blocks of whatever required for level data. As long as you use rewind and seek properly to avoid over writing data then you are fine.

                It is quite simply a block of data - what you do with it is up to you but all the commands are there to do it.

                The only way it differs from other systems is that you only have a single file (per project) so you need to plan in advance.

                1 Reply Last reply Reply Quote 0
                • Spacemario
                  Spacemario F @Zypher last edited by

                  @Zypher said in Can we get a traditional drawing app:

                  So now I have a question for you folks. Is saving arrays as files or whatever so you can have save data for games a thing? I can't port a 3ds game I made on smilebasic because there's no way to save data that I know of. Just curious If that's in your head.

                  Saving an array in Fuze should be pretty easy: just loop through your array and keep appending to a string-- make sure each entry in the string is a fixed width (so, just pad with spaces or whatever character you want). Once your loop is done, open your file handle, save the string to the file, and close the handle. Done!

                  There are no built-in "pad" functions in Fuze that I could find, unlike other programming languages-- so what I do is just fill it up with 0's (or spaces maybe in your case) past the point I need, then trim it to my delimiter afterwards. Nice and clean!

                  Then to load it back, open your file handle and loop over the string, lopping off your fixed width each time. Store each lopped off bit back into your array.

                  Here is how I did it in "Skatey-Cat" (game I've been working on). My total file is 100 characters (10 high score records of 10 characters each). One small note: for line 1892, you probably won't want the " - 1" in the loop-- there is a game-specific reason why I ignore the last record.

                  code.jpg

                  Zypher 1 Reply Last reply Reply Quote 2
                  • Zypher
                    Zypher @Spacemario last edited by

                    @Spacemario thanks man! That might help me alot!

                    Spacemario 1 Reply Last reply Reply Quote 0
                    • Spacemario
                      Spacemario F @Zypher last edited by

                      @Zypher No problem at all! Let me know if you run into problems and I can try to help.

                      1 Reply Last reply Reply Quote 0
                      • T
                        tigerboy3050 F @Zero Division last edited by

                        @Zero-Division Fuze's competitor Smilebasic4 which is also for the switch has mouse support. So yes this is possible!

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

                          We'll do our best to look into it!

                          1 Reply Last reply Reply Quote 1
                          • F
                            faz808 F @QIsLegit last edited by

                            @QIsLegit See https://fuzearena.com/forum/topic/1421/eureka-moment/31

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