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

    @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
                              • CreatiCodeI CreatiCode

                                @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 Offline
                                silvloveS Offline
                                silvlove
                                Mod Helper
                                wrote on last edited by
                                #22

                                @info-creaticode
                                I have problems with XO too on the same project, but only when I see inside.
                                See Inside:
                                8ad2a040-d2f2-4269-97af-d8d3c1a75361-image.png
                                Remix:
                                87b155a3-ec08-45ab-8850-d206cdea7ab2-image.png

                                Forums Moderator.
                                Trans girl :3 ~ 14yo
                                Friendly and sometimes goofy~!

                                CreatiCodeI 2 Replies Last reply
                                0
                                • silvloveS silvlove

                                  @info-creaticode
                                  I have problems with XO too on the same project, but only when I see inside.
                                  See Inside:
                                  8ad2a040-d2f2-4269-97af-d8d3c1a75361-image.png
                                  Remix:
                                  87b155a3-ec08-45ab-8850-d206cdea7ab2-image.png

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

                                  @catty

                                  Thank you. We’ll look into this new error.

                                  1 Reply Last reply
                                  0
                                  • silvloveS silvlove

                                    @info-creaticode
                                    I have problems with XO too on the same project, but only when I see inside.
                                    See Inside:
                                    8ad2a040-d2f2-4269-97af-d8d3c1a75361-image.png
                                    Remix:
                                    87b155a3-ec08-45ab-8850-d206cdea7ab2-image.png

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

                                    @catty

                                    Actually, XO only works when you are logged in. Can you verify you are logged in when you get the error message?

                                    silvloveS TheNicknameGovT 2 Replies Last reply
                                    0
                                    • CreatiCodeI CreatiCode

                                      @catty

                                      Actually, XO only works when you are logged in. Can you verify you are logged in when you get the error message?

                                      silvloveS Offline
                                      silvloveS Offline
                                      silvlove
                                      Mod Helper
                                      wrote on last edited by silvlove
                                      #25

                                      @info-creaticode
                                      I was logged in as shown in the screenshots.
                                      ba668fe6-d593-4b4e-8e9a-8270a2927ee8-image.png
                                      When I clicked see inside logged out, XO doesn’t pop up.

                                      Forums Moderator.
                                      Trans girl :3 ~ 14yo
                                      Friendly and sometimes goofy~!

                                      1 Reply Last reply
                                      0
                                      • CreatiCodeI CreatiCode

                                        @catty

                                        Actually, XO only works when you are logged in. Can you verify you are logged in when you get the error message?

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

                                        @info-creaticode It also happens every time I load a new project
                                        e369d3dc-c513-48f9-bfce-45b9aec9e17e-image.png

                                        Please help all my projects are 3000+ blocks

                                        CreatiCodeI 1 Reply Last reply
                                        1
                                        • TheNicknameGovT TheNicknameGov

                                          @info-creaticode It also happens every time I load a new project
                                          e369d3dc-c513-48f9-bfce-45b9aec9e17e-image.png

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

                                          @011830-0a42ef84

                                          Can you please reload the page, and make sure you are logged in, and then try XO again? We have made some improvement to XO, but we are not sure if they would resolve your specific issue. Thanks

                                          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