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. So, There is a bug here. Can anyone fix it?

So, There is a bug here. Can anyone fix it?

Scheduled Pinned Locked Moved Help
16 Posts 2 Posters 3.4k 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.
  • Tyller_T Tyller_

    @sirbots try adding a console.log or set variable to with the distance block, I dont see an issue here sso that’s the main way to debug

    SirBotsS Offline
    SirBotsS Offline
    SirBots
    wrote on last edited by
    #3

    @tyller_ Here is the full movement code if you want to look at it.

    Note: Scroll X and Y changes based on the player’s movement. Not X and Y cords.

    Your local coder who is working around the clock to make sure great games are made

    1 Reply Last reply
    0
    • Tyller_T Tyller_

      @sirbots try adding a console.log or set variable to with the distance block, I dont see an issue here sso that’s the main way to debug

      SirBotsS Offline
      SirBotsS Offline
      SirBots
      wrote on last edited by
      #4

      @tyller_ Screenshot 2025-03-24 12.34.08 PM.png

      Your local coder who is working around the clock to make sure great games are made

      SirBotsS 1 Reply Last reply
      0
      • SirBotsS SirBots

        @tyller_ Screenshot 2025-03-24 12.34.08 PM.png

        SirBotsS Offline
        SirBotsS Offline
        SirBots
        wrote on last edited by
        #5

        @sirbots The say block is for the debugging.

        Your local coder who is working around the clock to make sure great games are made

        Tyller_T 1 Reply Last reply
        0
        • SirBotsS SirBots

          @sirbots The say block is for the debugging.

          Tyller_T Offline
          Tyller_T Offline
          Tyller_
          trusted helpers
          wrote on last edited by Tyller_
          #6

          @sirbots copy and/or take the distance block and make it so a variable sets itself to the distance (or make it say the distance) or just drag it out, that way you cna see what hte distance is each frame

          edit: The only thing I can think of rn is maybe you mixed up cos and sin (like got them backwards) cus I dont know that off the top of my head

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

          SirBotsS 1 Reply Last reply
          0
          • Tyller_T Tyller_

            @sirbots copy and/or take the distance block and make it so a variable sets itself to the distance (or make it say the distance) or just drag it out, that way you cna see what hte distance is each frame

            edit: The only thing I can think of rn is maybe you mixed up cos and sin (like got them backwards) cus I dont know that off the top of my head

            SirBotsS Offline
            SirBotsS Offline
            SirBots
            wrote on last edited by
            #7

            @tyller_ So, have a separate variable for the distance?

            Your local coder who is working around the clock to make sure great games are made

            Tyller_T 1 Reply Last reply
            0
            • SirBotsS SirBots

              @tyller_ So, have a separate variable for the distance?

              Tyller_T Offline
              Tyller_T Offline
              Tyller_
              trusted helpers
              wrote on last edited by
              #8

              @sirbots yes, do that or just copy the distance block and put it in a varibel set in the forever loop, then set so that variable is shown, or just make it say the distance in the forever loop. The intent is to see whats changing with teh distance

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

              SirBotsS 2 Replies Last reply
              0
              • Tyller_T Tyller_

                @sirbots yes, do that or just copy the distance block and put it in a varibel set in the forever loop, then set so that variable is shown, or just make it say the distance in the forever loop. The intent is to see whats changing with teh distance

                SirBotsS Offline
                SirBotsS Offline
                SirBots
                wrote on last edited by
                #9

                @tyller_ Got it!

                Your local coder who is working around the clock to make sure great games are made

                1 Reply Last reply
                0
                • Tyller_T Tyller_

                  @sirbots yes, do that or just copy the distance block and put it in a varibel set in the forever loop, then set so that variable is shown, or just make it say the distance in the forever loop. The intent is to see whats changing with teh distance

                  SirBotsS Offline
                  SirBotsS Offline
                  SirBots
                  wrote on last edited by
                  #10

                  @tyller_ The Distance is going down at very small increments. Note that the Scroll X and Y serves as the Player’s X and Y cords. Maybe that might play a part.

                  Your local coder who is working around the clock to make sure great games are made

                  Tyller_T 1 Reply Last reply
                  0
                  • SirBotsS SirBots

                    @tyller_ The Distance is going down at very small increments. Note that the Scroll X and Y serves as the Player’s X and Y cords. Maybe that might play a part.

                    Tyller_T Offline
                    Tyller_T Offline
                    Tyller_
                    trusted helpers
                    wrote on last edited by
                    #11

                    @sirbots can you add a thing to draw a circle on the target? does the bot appear to be not moving anymore/on the target when its going down slowly? whats the distance showing (rounded)?

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

                    SirBotsS 3 Replies Last reply
                    0
                    • Tyller_T Tyller_

                      @sirbots can you add a thing to draw a circle on the target? does the bot appear to be not moving anymore/on the target when its going down slowly? whats the distance showing (rounded)?

                      SirBotsS Offline
                      SirBotsS Offline
                      SirBots
                      wrote on last edited by
                      #12

                      @tyller_ Let me send you a copy of the game version, so you can look at it.

                      Your local coder who is working around the clock to make sure great games are made

                      1 Reply Last reply
                      0
                      • Tyller_T Tyller_

                        @sirbots can you add a thing to draw a circle on the target? does the bot appear to be not moving anymore/on the target when its going down slowly? whats the distance showing (rounded)?

                        SirBotsS Offline
                        SirBotsS Offline
                        SirBots
                        wrote on last edited by
                        #13

                        @tyller_ https://play.creaticode.com/projects/67e19d92628c7a862450d3cc

                        Your local coder who is working around the clock to make sure great games are made

                        1 Reply Last reply
                        0
                        • Tyller_T Tyller_

                          @sirbots can you add a thing to draw a circle on the target? does the bot appear to be not moving anymore/on the target when its going down slowly? whats the distance showing (rounded)?

                          SirBotsS Offline
                          SirBotsS Offline
                          SirBots
                          wrote on last edited by
                          #14

                          @tyller_ WAIT! I fixed it. Variables were in the wrong places.

                          Your local coder who is working around the clock to make sure great games are made

                          Tyller_T 1 Reply Last reply
                          0
                          • SirBotsS SirBots

                            @tyller_ WAIT! I fixed it. Variables were in the wrong places.

                            Tyller_T Offline
                            Tyller_T Offline
                            Tyller_
                            trusted helpers
                            wrote on last edited by
                            #15

                            @sirbots Im curious, was it misplaced blocks elsewhere? or did you accidentally set something like box or the change thing to something else

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

                            SirBotsS 1 Reply Last reply
                            0
                            • Tyller_T Tyller_

                              @sirbots Im curious, was it misplaced blocks elsewhere? or did you accidentally set something like box or the change thing to something else

                              SirBotsS Offline
                              SirBotsS Offline
                              SirBots
                              wrote on last edited by
                              #16

                              @tyller_ I used the wrong operators, and I didn’t have the proper distance variable in the movement scripts.

                              Your local coder who is working around the clock to make sure great games are made

                              1 Reply Last reply
                              1

                              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