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. Is it possible to code this?

Is it possible to code this?

Scheduled Pinned Locked Moved Help
15 Posts 2 Posters 2.9k 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.
  • B Offline
    B Offline
    Blujey 1294
    wrote on last edited by
    #1

    I want to code this mechanic from terraria with the illusions but I don’t know if its possible, or something I just need some tips, please. my project btw: https://play.creaticode.com/projects/6789294c9d4344c8ce37e611


    2:45 for timestamp

    Tyller_T 1 Reply Last reply
    1
    • B Blujey 1294

      I want to code this mechanic from terraria with the illusions but I don’t know if its possible, or something I just need some tips, please. my project btw: https://play.creaticode.com/projects/6789294c9d4344c8ce37e611


      2:45 for timestamp

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

      @blujey1294-328b9bc4 you can try this logic:

      Create 3 clones
      each clone has a unique id (for complex and less repeated you can try something like -+ ± and --, for each axis and diagonal)
      handle each clone id under three if else statements
      have two variables for the original sprites x and y, and the players x and y
      each clone does the following:
      subtract the sprites x and y variables from the players x and y variables
      then for each individual clone:
      -the first clone multiples the x by -1 and doesn’t touch the y
      -the second clone doesn’t touch the x and multiplies the y by -1
      -the third clone multiples both the x and y by -1
      the players x and y are added back
      each clone goes to these final results

      Basically this reflects the x and y across the corresponding axises for each clone, treating the player x and y as the origin point

      I can make an example set of operator blocks to show how to do all this math

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

      B 1 Reply Last reply
      1
      • Tyller_T Tyller_

        @blujey1294-328b9bc4 you can try this logic:

        Create 3 clones
        each clone has a unique id (for complex and less repeated you can try something like -+ ± and --, for each axis and diagonal)
        handle each clone id under three if else statements
        have two variables for the original sprites x and y, and the players x and y
        each clone does the following:
        subtract the sprites x and y variables from the players x and y variables
        then for each individual clone:
        -the first clone multiples the x by -1 and doesn’t touch the y
        -the second clone doesn’t touch the x and multiplies the y by -1
        -the third clone multiples both the x and y by -1
        the players x and y are added back
        each clone goes to these final results

        Basically this reflects the x and y across the corresponding axises for each clone, treating the player x and y as the origin point

        I can make an example set of operator blocks to show how to do all this math

        B Offline
        B Offline
        Blujey 1294
        wrote on last edited by Blujey1294-328b9bc4
        #3

        @tyller_

        I’m really bad at coding those things but thank you so much for the tips, i would like an example

        Tyller_T 1 Reply Last reply
        1
        • B Blujey 1294

          @tyller_

          I’m really bad at coding those things but thank you so much for the tips, i would like an example

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

          @blujey1294-328b9bc4 IMG_0097.jpeg This should work (I haven’t tested but it should), the letter 5 and 6 of clone id are for the - and + symbols, and the dupe prefix is to make it different from other clones

          edit: that go to should be in a forever loop*, and you can add a ghost effect based on boss health

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

          B 2 Replies Last reply
          1
          • Tyller_T Tyller_

            @blujey1294-328b9bc4 IMG_0097.jpeg This should work (I haven’t tested but it should), the letter 5 and 6 of clone id are for the - and + symbols, and the dupe prefix is to make it different from other clones

            edit: that go to should be in a forever loop*, and you can add a ghost effect based on boss health

            B Offline
            B Offline
            Blujey 1294
            wrote on last edited by
            #5

            @tyller_ tysm

            1 Reply Last reply
            1
            • Tyller_T Tyller_

              @blujey1294-328b9bc4 IMG_0097.jpeg This should work (I haven’t tested but it should), the letter 5 and 6 of clone id are for the - and + symbols, and the dupe prefix is to make it different from other clones

              edit: that go to should be in a forever loop*, and you can add a ghost effect based on boss health

              B Offline
              B Offline
              Blujey 1294
              wrote on last edited by Blujey1294-328b9bc4
              #6

              @tyller_ I followed the instructions to a T, but I don’t know how to actually make the variables do something, as they aren’t registering as anything and it makes the brain go to 0,0?

              Tyller_T 1 Reply Last reply
              1
              • B Blujey 1294

                @tyller_ I followed the instructions to a T, but I don’t know how to actually make the variables do something, as they aren’t registering as anything and it makes the brain go to 0,0?

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

                @blujey1294-328b9bc4 you have to do forever loops so the x and y variable places are set to the brains x and y, and the PlayerX and PlayerY are set to the x and y of the player in a forever loop. I can make an example if necessary

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

                B 1 Reply Last reply
                0
                • Tyller_T Tyller_

                  @blujey1294-328b9bc4 you have to do forever loops so the x and y variable places are set to the brains x and y, and the PlayerX and PlayerY are set to the x and y of the player in a forever loop. I can make an example if necessary

                  B Offline
                  B Offline
                  Blujey 1294
                  wrote on last edited by
                  #8

                  @tyller_ please do!

                  Tyller_T 1 Reply Last reply
                  0
                  • B Blujey 1294

                    @tyller_ please do!

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

                    @blujey1294-328b9bc4 IMG_0098.jpeg

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

                    B 2 Replies Last reply
                    1
                    • Tyller_T Tyller_

                      @blujey1294-328b9bc4 IMG_0098.jpeg

                      B Offline
                      B Offline
                      Blujey 1294
                      wrote on last edited by
                      #10

                      @tyller_ thanks!!!

                      1 Reply Last reply
                      0
                      • Tyller_T Tyller_

                        @blujey1294-328b9bc4 IMG_0098.jpeg

                        B Offline
                        B Offline
                        Blujey 1294
                        wrote on last edited by
                        #11

                        @tyller_ nothing works, it just spawns directly on the boss. thanks for the help though, I’ve learned so much!

                        Tyller_T 1 Reply Last reply
                        0
                        • B Blujey 1294

                          @tyller_ nothing works, it just spawns directly on the boss. thanks for the help though, I’ve learned so much!

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

                          @blujey1294-328b9bc4 Can you share it? If you want not everybody to see it you can friend me and share with friends (I was gonna send thee friend request but can’t find the button to do so)

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

                          B 1 Reply Last reply
                          0
                          • Tyller_T Tyller_

                            @blujey1294-328b9bc4 Can you share it? If you want not everybody to see it you can friend me and share with friends (I was gonna send thee friend request but can’t find the button to do so)

                            B Offline
                            B Offline
                            Blujey 1294
                            wrote on last edited by
                            #13

                            @tyller_ I shared it for everyone (set it to public) and I think you can click on the link https://play.creaticode.com/projects/6789294c9d4344c8ce37e611

                            Tyller_T 1 Reply Last reply
                            0
                            • B Blujey 1294

                              @tyller_ I shared it for everyone (set it to public) and I think you can click on the link https://play.creaticode.com/projects/6789294c9d4344c8ce37e611

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

                              @blujey1294-328b9bc4 https://play.creaticode.com/projects/67910a97ef88686bff922e9e

                              I have fixed it, I changed the clone player and Brain of Cthulhu sprites, the issues were first, you put the on green flag click script with teh comment “player sprite” in the brian of cthulhu sprite, it should be in the player sprite. I then changed some stuff so it uses the Clone sprite for stuff (that way the clones can’t damage the player)

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

                              B 1 Reply Last reply
                              0
                              • Tyller_T Tyller_

                                @blujey1294-328b9bc4 https://play.creaticode.com/projects/67910a97ef88686bff922e9e

                                I have fixed it, I changed the clone player and Brain of Cthulhu sprites, the issues were first, you put the on green flag click script with teh comment “player sprite” in the brian of cthulhu sprite, it should be in the player sprite. I then changed some stuff so it uses the Clone sprite for stuff (that way the clones can’t damage the player)

                                B Offline
                                B Offline
                                Blujey 1294
                                wrote on last edited by
                                #15

                                @tyller_ TYSM

                                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