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. Shows the Creaticode screen when I place DJ in -- "goofy Tower Defense test room"

Shows the Creaticode screen when I place DJ in -- "goofy Tower Defense test room"

Scheduled Pinned Locked Moved Help
27 Posts 3 Posters 5.5k 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.
  • TheNicknameGovT TheNicknameGov

    When I place the DJ, there is a hat sprite that is supposed to appear on the DJ, but instead this screen shows

    50221eac-e6cd-49b1-8a4e-34d8daaca3f9-Screenshot 2024-11-13 3.23.21 PM.png

    Please help with this bug and what went wrong,
    Thank you.

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

    @011830-0a42ef84

    What’s the project URL?

    TheNicknameGovT 3 Replies Last reply
    0
    • CreatiCodeI CreatiCode

      @011830-0a42ef84

      What’s the project URL?

      TheNicknameGovT Offline
      TheNicknameGovT Offline
      TheNicknameGov
      trusted helpers
      wrote on last edited by
      #3

      @info-creaticode https://play.creaticode.com/projects/6730fb66bf68856fe9840816

      Please help all my projects are 3000+ blocks

      1 Reply Last reply
      0
      • CreatiCodeI CreatiCode

        @011830-0a42ef84

        What’s the project URL?

        TheNicknameGovT Offline
        TheNicknameGovT Offline
        TheNicknameGov
        trusted helpers
        wrote on last edited by
        #4

        @info-creaticode Nevermind I fixed it

        Please help all my projects are 3000+ blocks

        1 Reply Last reply
        0
        • CreatiCodeI CreatiCode

          @011830-0a42ef84

          What’s the project URL?

          TheNicknameGovT Offline
          TheNicknameGovT Offline
          TheNicknameGov
          trusted helpers
          wrote on last edited by
          #5

          @info-creaticode Can you help me with making the units face the first enemy they see? They target the fastest right now because all I know how to do is target a specific unit, and if they kill that one they target a certain other, and so on and so forth

          Please help all my projects are 3000+ blocks

          CreatiCodeI 1 Reply Last reply
          0
          • TheNicknameGovT TheNicknameGov

            @info-creaticode Can you help me with making the units face the first enemy they see? They target the fastest right now because all I know how to do is target a specific unit, and if they kill that one they target a certain other, and so on and so forth

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

            @011830-0a42ef84

            Can you define what’s the “first” target? Do you want it to lock at the most front-running target? Or the one with the earliest born time?

            In general, you should not use the “point towards [sprite]” block in this case. Instead, you can try to compare all the targets based on your rule, and find out which target is the one you want to point at, then you can save its x/y positions into 2 variables.

            Then, in the gun sprite, use the point towards x y in N seconds block.

            TheNicknameGovT 1 Reply Last reply
            0
            • CreatiCodeI CreatiCode

              @011830-0a42ef84

              Can you define what’s the “first” target? Do you want it to lock at the most front-running target? Or the one with the earliest born time?

              In general, you should not use the “point towards [sprite]” block in this case. Instead, you can try to compare all the targets based on your rule, and find out which target is the one you want to point at, then you can save its x/y positions into 2 variables.

              Then, in the gun sprite, use the point towards x y in N seconds block.

              TheNicknameGovT Offline
              TheNicknameGovT Offline
              TheNicknameGov
              trusted helpers
              wrote on last edited by
              #7

              @info-creaticode I mean the one that is ahead of the other enemies, and if there if one that gets ahead of the one that used to be in front, that enemy will become the “first” enemy

              Please help all my projects are 3000+ blocks

              CreatiCodeI 1 Reply Last reply
              0
              • TheNicknameGovT TheNicknameGov

                @info-creaticode I mean the one that is ahead of the other enemies, and if there if one that gets ahead of the one that used to be in front, that enemy will become the “first” enemy

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

                @011830-0a42ef84

                In that case, you will need to write some code to check which target sprite is currently the first. One way to do it is to look at how far it has traveled. Since every target starts at the same point, the one that has traveled the most should be the leading one, right?

                And assuming each target has a constant speed, you just need to multiply its speed with how long it has been moving to get its total travel distance. The one target with the longest travel distance must be the leading one.

                TheNicknameGovT 1 Reply Last reply
                0
                • CreatiCodeI CreatiCode

                  @011830-0a42ef84

                  In that case, you will need to write some code to check which target sprite is currently the first. One way to do it is to look at how far it has traveled. Since every target starts at the same point, the one that has traveled the most should be the leading one, right?

                  And assuming each target has a constant speed, you just need to multiply its speed with how long it has been moving to get its total travel distance. The one target with the longest travel distance must be the leading one.

                  TheNicknameGovT Offline
                  TheNicknameGovT Offline
                  TheNicknameGov
                  trusted helpers
                  wrote on last edited by
                  #9

                  @info-creaticode So what I’m getting in simple words is, {enemySpeed}*{timeOnField}={totalDistance}, find the enemy with the highest total distance, and point towards that enemy?

                  If so, would you then put to variables labeled {firstX} and {firstY}, and use those as the direction the units need to aim?

                  Please help all my projects are 3000+ blocks

                  CreatiCodeI 1 Reply Last reply
                  0
                  • TheNicknameGovT TheNicknameGov

                    @info-creaticode So what I’m getting in simple words is, {enemySpeed}*{timeOnField}={totalDistance}, find the enemy with the highest total distance, and point towards that enemy?

                    If so, would you then put to variables labeled {firstX} and {firstY}, and use those as the direction the units need to aim?

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

                    @011830-0a42ef84

                    No, you can use

                    point towards (firstX) (firstY) in (0) seconds

                    c12a4556-f78c-4e2a-b3f9-2fcfdf007dc1-image.png

                    TheNicknameGovT 1 Reply Last reply
                    0
                    • CreatiCodeI CreatiCode

                      @011830-0a42ef84

                      No, you can use

                      point towards (firstX) (firstY) in (0) seconds

                      c12a4556-f78c-4e2a-b3f9-2fcfdf007dc1-image.png

                      TheNicknameGovT Offline
                      TheNicknameGovT Offline
                      TheNicknameGov
                      trusted helpers
                      wrote on last edited by
                      #11

                      @info-creaticode Will each sprite require their own variables or can you edit them to where {enemySpeed} and {TimeOnField} can affect individual enemies?

                      Please help all my projects are 3000+ blocks

                      CreatiCodeI 1 Reply Last reply
                      0
                      • TheNicknameGovT TheNicknameGov

                        @info-creaticode Will each sprite require their own variables or can you edit them to where {enemySpeed} and {TimeOnField} can affect individual enemies?

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

                        @011830-0a42ef84

                        There are many ways to do this. For example, you can use a table or list to store all the speed and start time of all sprites.

                        This might be a good time to ask XO for specific coding suggestions.

                        TheNicknameGovT 1 Reply Last reply
                        1
                        • CreatiCodeI CreatiCode

                          @011830-0a42ef84

                          There are many ways to do this. For example, you can use a table or list to store all the speed and start time of all sprites.

                          This might be a good time to ask XO for specific coding suggestions.

                          TheNicknameGovT Offline
                          TheNicknameGovT Offline
                          TheNicknameGov
                          trusted helpers
                          wrote on last edited by
                          #13

                          @info-creaticode I’ve tried, but it doesn’t appear when I ask it something. I’ve tried debugging and restarting the chat but it doesn’t work

                          Please help all my projects are 3000+ blocks

                          CreatiCodeI 1 Reply Last reply
                          1
                          • TheNicknameGovT TheNicknameGov

                            @info-creaticode I’ve tried, but it doesn’t appear when I ask it something. I’ve tried debugging and restarting the chat but it doesn’t work

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

                            @011830-0a42ef84

                            That’s strange. Are you trying at school? It might be blocked. Can you share a screenshot?

                            TheNicknameGovT 1 Reply Last reply
                            1
                            • CreatiCodeI CreatiCode

                              @011830-0a42ef84

                              That’s strange. Are you trying at school? It might be blocked. Can you share a screenshot?

                              TheNicknameGovT Offline
                              TheNicknameGovT Offline
                              TheNicknameGov
                              trusted helpers
                              wrote on last edited by
                              #15

                              @info-creaticode b878a8a0-5f59-45cd-afe9-65a5d840d2d1-image.png
                              I typed in "how do you make variable on only 1 sprite, and it didn’t show

                              Please help all my projects are 3000+ blocks

                              CreatiCodeI 2 Replies Last reply
                              1
                              • TheNicknameGovT TheNicknameGov

                                @info-creaticode b878a8a0-5f59-45cd-afe9-65a5d840d2d1-image.png
                                I typed in "how do you make variable on only 1 sprite, and it didn’t show

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

                                @011830-0a42ef84

                                Thank you. We will investigate why this is happening.

                                1 Reply Last reply
                                1
                                • TheNicknameGovT TheNicknameGov

                                  @info-creaticode b878a8a0-5f59-45cd-afe9-65a5d840d2d1-image.png
                                  I typed in "how do you make variable on only 1 sprite, and it didn’t show

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

                                  @011830-0a42ef84

                                  This issue has been fixed. You should be able to use XO now.

                                  TheNicknameGovT 1 Reply Last reply
                                  1
                                  • CreatiCodeI CreatiCode

                                    @011830-0a42ef84

                                    This issue has been fixed. You should be able to use XO now.

                                    TheNicknameGovT Offline
                                    TheNicknameGovT Offline
                                    TheNicknameGov
                                    trusted helpers
                                    wrote on last edited by TAO
                                    #18

                                    @info-creaticode It still shows the same issue, it might not be fixed because i’m editing the same game I found the bug in, but I’m not sure.

                                    Or it just only occurs to me

                                    Please help all my projects are 3000+ blocks

                                    CreatiCodeI 1 Reply Last reply
                                    0
                                    • TheNicknameGovT TheNicknameGov

                                      @info-creaticode It still shows the same issue, it might not be fixed because i’m editing the same game I found the bug in, but I’m not sure.

                                      Or it just only occurs to me

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

                                      @011830-0a42ef84

                                      Can you post the project link? Also, have you reloaded the page? It will need a reload to pick up the changes.

                                      TheNicknameGovT 1 Reply Last reply
                                      0
                                      • CreatiCodeI CreatiCode

                                        @011830-0a42ef84

                                        Can you post the project link? Also, have you reloaded the page? It will need a reload to pick up the changes.

                                        TheNicknameGovT Offline
                                        TheNicknameGovT Offline
                                        TheNicknameGov
                                        trusted helpers
                                        wrote on last edited by
                                        #20

                                        @info-creaticode https://play.creaticode.com/projects/6730fb66bf68856fe9840816

                                        Please help all my projects are 3000+ blocks

                                        CreatiCodeI 1 Reply Last reply
                                        0
                                        • TheNicknameGovT TheNicknameGov

                                          @info-creaticode https://play.creaticode.com/projects/6730fb66bf68856fe9840816

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

                                          @011830-0a42ef84

                                          I get no issue now. Can you reload the browser page and try again? If it is not working, please paste a screenshot again. Thanks

                                          625a5e88-a5cb-49a2-8f1e-64742e249b5c-image.png

                                          silvloveS 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