Navigation

    CreatiCode Scratch Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • CreatiCode

    new block ideas

    Feedback
    7
    24
    981
    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.
    • jeffreyrb03-gmail
      JaecadeJnight Mod Helper last edited by

      I have some new block ideas:

      • Name of widget last clicked e409963f-425e-45fe-be5b-e384f3feb3f3-image.png
        This will return the name of the widget that you last clicked. This would be useful for like if(name of widget last clicked = coinsBtn) then increase coins by 5, for say, a clicker game or something.
      • Weather blocks. The Scratch weather extension located here: https://khanning.github.io/scratch-weather-extension/ might be useful, and easy to add. It allows you to get the temperature, humidity, etc. of certain places.
      • Changing the cursor appearance. While widgets already gives you the pointer cursor when you hover over a button so you know it’s a button, it would also be useful to have this feature for sprites, so when you hover over a sprite that is (supposed to be) a button, your cursor will change to the pointer (👆).
      • Getting device battery information. It is actually possible I believe to get the user’s device battery percentage because there is a Battery object or something in JavaScript that you could just make a block retrieve, and would return something like 85%.
        cff72e99-44c7-49db-bf92-725632f11934-image.png
        getting battery is easy, here’s some code that will get your current battery percent and output it to the console:
      navigator.getBattery().then(function(battery) {
      
          var level = battery.level;
      
          console.log(level);
      });
      

      This would be useful if say, you want to try to check if the battery is 10% or under and then preserve the user’s battery by limiting or outright disabling a feature in your project.

      • play sound from URL. 2c7a119d-0419-433b-8045-3e1239da2fff-image.png
        this would play a horse noise
      • Make costume from URL:

        that URL is the Creaticode logo, and it will make it a costume named “costume1”

      #LLJW
      <span style="color:white;background-image:linear-gradient(to right, lightblue, navy)">My name is Jeff</span>

      info-creaticode 2 Replies Last reply Reply Quote 0
      • Black Cat
        Shrukin Longtail last edited by

        @lillian159174-255f4598 Amen, brother. Amen.

        ㅤㅤㅤㅤㅤㅤ (look in bio for random)
        ㅤㅤㅤㅤㅤㅤLook at my bio? Click the link… I'm lonely…

        1 Reply Last reply Reply Quote 0
        • info-creaticode
          CreatiCode @jeffreyrb03-gmail last edited by

          Thank you for these interesting suggestions. Please see our comments below:

          @jeffreyrb03-gmail said in new block ideas:

          I have some new block ideas:

          • Name of widget last clicked e409963f-425e-45fe-be5b-e384f3feb3f3-image.png
            This will return the name of the widget that you last clicked. This would be useful for like if(name of widget last clicked = coinsBtn) then increase coins by 5, for say, a clicker game or something.

          This is already supported using the following code:

          964617ad-05b8-45af-9dc6-a1b0ffe34b0c-image.png

          • Weather blocks. The Scratch weather extension located here: https://khanning.github.io/scratch-weather-extension/ might be useful, and easy to add. It allows you to get the temperature, humidity, etc. of certain places.

          We can add blocks for getting weather data.

          • Changing the cursor appearance. While widgets already gives you the pointer cursor when you hover over a button so you know it’s a button, it would also be useful to have this feature for sprites, so when you hover over a sprite that is (supposed to be) a button, your cursor will change to the pointer (👆).

          This needs to be discussed further. How do we tell the system whether a sprite is meant to be a button? Maybe a new block like this: set cursor type [default/pointer/text/wait/not-allowed]

          • Getting device battery information. It is actually possible I believe to get the user’s device battery percentage because there is a Battery object or something in JavaScript that you could just make a block retrieve, and would return something like 85%.
            cff72e99-44c7-49db-bf92-725632f11934-image.png
            getting battery is easy, here’s some code that will get your current battery percent and output it to the console:
          navigator.getBattery().then(function(battery) {
          
              var level = battery.level;
          
              console.log(level);
          });
          

          This would be useful if say, you want to try to check if the battery is 10% or under and then preserve the user’s battery by limiting or outright disabling a feature in your project.

          We can look into adding blocks to get device info.

          • play sound from URL. 2c7a119d-0419-433b-8045-3e1239da2fff-image.png
            this would play a horse noise

          Yes we can add a block like this.

          • Make costume from URL:

            that URL is the Creaticode logo, and it will make it a costume named “costume1”

          Do you mean adding a new costume dynamically in the program? Usually costumes are added manually before the program runs. What would be a good use case for this new block?

          jeffreyrb03-gmail c. 2 Replies Last reply Reply Quote 1
          • jeffreyrb03-gmail
            JaecadeJnight Mod Helper @info-creaticode last edited by jeffreyrb03-gmail

            @info-creaticode I am actually not sure how the last one would be useful, but I thought it would be possible because of how there’s stuff like the AI DallE thing that makes a costume.

            For the cursor, I mean like a block that will just change the cursor, and it could be used to add more interactivity/clarity. Ex how it would be used:

            when green flag clicked,
            forever {
            if(mouse pointer is touching sprite1) {
            change cursor to (pointer)
            }
            else {
            change cursor to (normal)
            }

            }


            edit: the cursor block would also need to support these:
            edit2: implementing custom cursor functionality doesn't require super complicated JavaScript, just some CSS rules that you could also implement with JavaScript. Example:
            Hover over me
            Hover over me
            Hover over me
            when you hover over those you get a loading cursor

            #LLJW
            <span style="color:white;background-image:linear-gradient(to right, lightblue, navy)">My name is Jeff</span>

            info-creaticode 1 Reply Last reply Reply Quote 0
            • info-creaticode
              CreatiCode @jeffreyrb03-gmail last edited by

              @jeffreyrb03-gmail

              We will add these requests to our queue since they are not urgent.

              jeffreyrb03-gmail 2 Replies Last reply Reply Quote 1
              • jeffreyrb03-gmail
                JaecadeJnight Mod Helper @info-creaticode last edited by

                @info-creaticode Thank you

                #LLJW
                <span style="color:white;background-image:linear-gradient(to right, lightblue, navy)">My name is Jeff</span>

                1 Reply Last reply Reply Quote 0
                • jeffreyrb03-gmail
                  JaecadeJnight Mod Helper @info-creaticode last edited by

                  @info-creaticode Also, how would I be able to become a developer for CreatiCode or sort of work for CreatiCode? I have become more familiar with the values of CreatiCode recently and have improved, like how I struggled with understanding how the site is K-12 (and things have to be sort of kept G-PG rated) a month or two ago, but now I’m better with that.

                  I’m 14 and I don’t want any money I just want to help the platform and add more blocks. Are there any requirements?

                  #LLJW
                  <span style="color:white;background-image:linear-gradient(to right, lightblue, navy)">My name is Jeff</span>

                  info-creaticode 1 Reply Last reply Reply Quote 0
                  • info-creaticode
                    CreatiCode @jeffreyrb03-gmail last edited by

                    @jeffreyrb03-gmail

                    Thanks for the kind offer. It is not easy to open up our code base for external contribution at this point. If you are looking for something challenging to do, it would be very helpful to us and to our user community if you can create more interesting projects that demonstrate the potential of our rich set of blocks, especially the AI, 3D, widgets, 2D physics engine and cloud blocks.

                    jeffreyrb03-gmail c. 2 Replies Last reply Reply Quote 2
                    • jeffreyrb03-gmail
                      JaecadeJnight Mod Helper @info-creaticode last edited by

                      @info-creaticode Got it, I have some big ideas that I plan on doing, thank you!

                      #LLJW
                      <span style="color:white;background-image:linear-gradient(to right, lightblue, navy)">My name is Jeff</span>

                      1 Reply Last reply Reply Quote 1
                      • c.
                        Cαƚƚყ Mod Helper @info-creaticode last edited by c.

                        @info-creaticode
                        Tbh I think I’d be a great moderator of the forums lol
                        Not asking to be one, just saying

                        Official Forums Moderator

                        Black Cat 1 Reply Last reply Reply Quote 1
                        • c.
                          Cαƚƚყ Mod Helper @info-creaticode last edited by

                          We can look into adding blocks to get device info.

                          don’t allow It to get things like device name, storage, and even passwords, as they can be abused.

                          Official Forums Moderator

                          jeffreyrb03-gmail 1 Reply Last reply Reply Quote 0
                          • jeffreyrb03-gmail
                            JaecadeJnight Mod Helper @c. last edited by jeffreyrb03-gmail

                            @luna dont worry, browsers dont allow js to access your personal files without asking you, and there isnt any vulnerabilities in using web APIs to retrieve some device info like battery percentage or something.

                            I doubt they are going to add blocks and features for cookies and/or local storage (small website data like logins) access tho because that can actually take your CreatiCode password, unless they put measures in place to prevent reading certain keys/cookies.

                            #LLJW
                            <span style="color:white;background-image:linear-gradient(to right, lightblue, navy)">My name is Jeff</span>

                            1 Reply Last reply Reply Quote 0
                            • Black Cat
                              Shrukin Longtail @c. last edited by

                              @luna 👍

                              ㅤㅤㅤㅤㅤㅤ (look in bio for random)
                              ㅤㅤㅤㅤㅤㅤLook at my bio? Click the link… I'm lonely…

                              1 Reply Last reply Reply Quote 0
                              • info-creaticode
                                CreatiCode @jeffreyrb03-gmail last edited by

                                @jeffreyrb03-gmail

                                With regard to the “play sound from URL” block, you can actually use the youtube block instead. You just need to set its width and height to 0.

                                67f7bc30-3402-4441-be52-1c81cc731ccf-image.png

                                You can find almost every possible sound or background music you want on Youtube. For example, there are at least 50 videos for horse noise.

                                c. 1 Reply Last reply Reply Quote 2
                                • c.
                                  Cαƚƚყ Mod Helper @info-creaticode last edited by c.

                                  @info-creaticode
                                  Could you make this work for non-3D projects, too? Downloading audio from another website is sketchy enough, but for YouTube? It’s too malicious.

                                  Best regards,
                                  Luna.
                                  i forgot I had a signature.

                                  Official Forums Moderator

                                  info-creaticode 1 Reply Last reply Reply Quote 0
                                  • info-creaticode
                                    CreatiCode @c. last edited by

                                    @luna

                                    The widget blocks work in both 2D and 3D projects. There are good and bad videos on Youtube. If anyone uses bad content from Youtube, we will delete the project and ban the author.

                                    c. jeffreyrb03-gmail 2 Replies Last reply Reply Quote 2
                                    • c.
                                      Cαƚƚყ Mod Helper @info-creaticode last edited by

                                      @info-creaticode
                                      Oh I didn’t realize it was a widget. Whoops, sorry!

                                      Official Forums Moderator

                                      1 Reply Last reply Reply Quote 0
                                      • jeffreyrb03-gmail
                                        JaecadeJnight Mod Helper @info-creaticode last edited by

                                        @info-creaticode I like the solution! Thanks! Also, for the YouTube widget, are songs with curse words allowed? Could I make a disclaimer that the project’s music contains curse words? What exactly is the limit for the number of or severity, because for instance, Mockingbird by Eminem contains just one bad word but the song is beautiful so it’d be a shame if it couldn’t be used. I also am not a fan of song censorship so I don’t really feel like or want to put radio edit versions.

                                        #LLJW
                                        <span style="color:white;background-image:linear-gradient(to right, lightblue, navy)">My name is Jeff</span>

                                        c. info-creaticode 2 Replies Last reply Reply Quote 0
                                        • c.
                                          Cαƚƚყ Mod Helper @jeffreyrb03-gmail last edited by

                                          @jeffreyrb03-gmail
                                          No.
                                          That’s why I download them, so I can easily censor rather than get banned.

                                          Official Forums Moderator

                                          1 Reply Last reply Reply Quote 0
                                          • info-creaticode
                                            CreatiCode @jeffreyrb03-gmail last edited by

                                            @jeffreyrb03-gmail

                                            Please, no bad words. If you are in doubt, then don’t do it. Be creative and find an appropriate alternative.

                                            jeffreyrb03-gmail 1 Reply Last reply Reply Quote 1
                                            • jeffreyrb03-gmail
                                              JaecadeJnight Mod Helper @info-creaticode last edited by

                                              @info-creaticode Got it

                                              #LLJW
                                              <span style="color:white;background-image:linear-gradient(to right, lightblue, navy)">My name is Jeff</span>

                                              1 Reply Last reply Reply Quote 0
                                              • Tyller_
                                                Tyller_ Best Forum Helpers last edited by

                                                For convenience and consistency could there be a say text with color effects but no time limit? Instead of just

                                                Say/think () for () seconds text size () background () edge

                                                There could also be

                                                Say/think () text size () background () edge ()

                                                <div component="post/signature" data-uid="255" class="post-signature">Check out my chat room project so you ppl can not use forums as chat rooms! https://play.creaticode.com/projects/66f2e1dcd1be43d82b886fbd?version=1 <p dir="auto">
                                                </div>

                                                info-creaticode 1 Reply Last reply Reply Quote 1
                                                • info-creaticode
                                                  CreatiCode @Tyller_ last edited by

                                                  @tyller_

                                                  We don’t want to add too many blocks, which can be daunting for new learners. In this case, you can set the number of seconds to a large number, right?

                                                  Tyller_ 1 Reply Last reply Reply Quote 0
                                                  • Tyller_
                                                    Tyller_ Best Forum Helpers @info-creaticode last edited by

                                                    @info-creaticode the one time I wanted to do it was when I had a lot of clones that were moving around (basically battling) and I wanted to see some stats, but the say/think bubbles were a bit big and blocked other ones, I tried the timed ones but ended up begrudgingly not displaying it since I didn’t think about using a second forever loop, it could be fine not existing since it’s a minor thing but I thought I would mention it

                                                    <div component="post/signature" data-uid="255" class="post-signature">Check out my chat room project so you ppl can not use forums as chat rooms! https://play.creaticode.com/projects/66f2e1dcd1be43d82b886fbd?version=1 <p dir="auto">
                                                    </div>

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