Navigation

    CreatiCode Scratch Forum

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

    Dynamic bug

    Help
    2
    8
    879
    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.
    • NotJaldolfYT
      NotJaldolfYT Best Forum Helpers last edited by


      When you click the dynamic object block 2x, your game “crashes” in a sort of way, more-so a softlock, but you can just refresh the page.

      hai!!!

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

        @jd131111

        Which block is the “dynamic object block” you are referring to?

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

          @info-creaticode
          behave as a [v] [v] shape [v] debug [v], or in better formatting:

          blocks (2).png

          hai!!!

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

            @jd131111

            Thank you. We will look into it.

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

              @JD131111

              Can you please share the project? We can’t seem to recreate the “crash” when clicking on this block multiple times. thank you

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

                @info-creaticode Okay, I’ll share the project link.

                (go into sprite ball, and click the
                when green flag clicked
                go to x: (120) y: (35)
                initialize 2D physics world with gravity x (0) y (-250)
                behave as a [dynamic v] [object v] shape [Circle v] debug [No v]
                end

                again.)

                https://play.creaticode.com/projects/679b7d73e83001fc08dab60f

                hai!!!

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

                  @jd131111

                  We looked into the issue. It seems the issue only occurs when you click the green flag block, but it works fine when you click the green flag button. This is because when you click the green flag button, additional clean up code will run so the sprite starts with a clean state. When you click the green flag block, the sprite’s state will not reset properly.

                  Also, for the Maze sprite, it should not run the “behave as” block when the green flag is clicked, because the physics engine may not have been initialized by the Ball sprite. A safer way is for the Ball sprite to initialize the physics engine, then broadcast a message to trigger the Maze to run the “behave as” block.

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

                    @info-creaticode Oh, thank you 😄

                    hai!!!

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