Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • CreatiCode
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

CreatiCode Scratch Forum

  1. CreatiCode Forum
  2. Help
  3. Dynamic bug

Dynamic bug

Scheduled Pinned Locked Moved Help
8 Posts 2 Posters 1.7k Views 1 Watching
  • 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.
  • NotJaldolfYTN Offline
    NotJaldolfYTN Offline
    NotJaldolfYT
    trusted helpers
    wrote on last edited by
    #1


    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.

    👋

    CreatiCodeI 1 Reply Last reply
    0
    • NotJaldolfYTN NotJaldolfYT


      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.

      CreatiCodeI Offline
      CreatiCodeI Offline
      CreatiCode
      wrote on last edited by info-creaticode
      #2

      @jd131111

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

      NotJaldolfYTN 1 Reply Last reply
      0
      • CreatiCodeI CreatiCode

        @jd131111

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

        NotJaldolfYTN Offline
        NotJaldolfYTN Offline
        NotJaldolfYT
        trusted helpers
        wrote on last edited by NotJaldolfYT
        #3

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

        blocks (2).png

        👋

        CreatiCodeI 1 Reply Last reply
        0
        • NotJaldolfYTN NotJaldolfYT

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

          blocks (2).png

          CreatiCodeI Offline
          CreatiCodeI Offline
          CreatiCode
          wrote on last edited by
          #4

          @jd131111

          Thank you. We will look into it.

          CreatiCodeI 1 Reply Last reply
          0
          • CreatiCodeI CreatiCode

            @jd131111

            Thank you. We will look into it.

            CreatiCodeI Offline
            CreatiCodeI Offline
            CreatiCode
            wrote on last edited by
            #5

            @JD131111

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

            NotJaldolfYTN 1 Reply Last reply
            0
            • CreatiCodeI CreatiCode

              @JD131111

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

              NotJaldolfYTN Offline
              NotJaldolfYTN Offline
              NotJaldolfYT
              trusted helpers
              wrote on last edited by
              #6

              @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

              👋

              CreatiCodeI 1 Reply Last reply
              0
              • NotJaldolfYTN NotJaldolfYT

                @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

                CreatiCodeI Offline
                CreatiCodeI Offline
                CreatiCode
                wrote on last edited by
                #7

                @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.

                NotJaldolfYTN 1 Reply Last reply
                0
                • CreatiCodeI CreatiCode

                  @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.

                  NotJaldolfYTN Offline
                  NotJaldolfYTN Offline
                  NotJaldolfYT
                  trusted helpers
                  wrote on last edited by
                  #8

                  @info-creaticode Oh, thank you 😄

                  👋

                  1 Reply Last reply
                  0

                  Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                  Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                  With your input, this post could be even better 💗

                  Register Login
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Groups
                  • CreatiCode