Navigation

    CreatiCode Scratch Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • CreatiCode

    Is it possible to code this?

    Help
    2
    15
    477
    Loading More Posts
    • 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
      Blujey 1294 last edited by

      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_ 1 Reply Last reply Reply Quote 1
      • Tyller_
        Tyller_ Best Forum Helpers @Blujey1294-328b9bc4 last edited by

        @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 Reply Quote 1
        • B
          Blujey 1294 @Tyller_ last edited by Blujey1294-328b9bc4

          @tyller_

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

          Tyller_ 1 Reply Last reply Reply Quote 1
          • Tyller_
            Tyller_ Best Forum Helpers @Blujey1294-328b9bc4 last edited by 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

            <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 Reply Quote 1
            • B
              Blujey 1294 @Tyller_ last edited by

              @tyller_ tysm

              1 Reply Last reply Reply Quote 1
              • B
                Blujey 1294 @Tyller_ last edited by Blujey1294-328b9bc4

                @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_ 1 Reply Last reply Reply Quote 1
                • Tyller_
                  Tyller_ Best Forum Helpers @Blujey1294-328b9bc4 last edited by

                  @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 Reply Quote 0
                  • B
                    Blujey 1294 @Tyller_ last edited by

                    @tyller_ please do!

                    Tyller_ 1 Reply Last reply Reply Quote 0
                    • Tyller_
                      Tyller_ Best Forum Helpers @Blujey1294-328b9bc4 last edited by

                      @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 Reply Quote 1
                      • B
                        Blujey 1294 @Tyller_ last edited by

                        @tyller_ thanks!!!

                        1 Reply Last reply Reply Quote 0
                        • B
                          Blujey 1294 @Tyller_ last edited by

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

                          Tyller_ 1 Reply Last reply Reply Quote 0
                          • Tyller_
                            Tyller_ Best Forum Helpers @Blujey1294-328b9bc4 last edited by

                            @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 Reply Quote 0
                            • B
                              Blujey 1294 @Tyller_ last edited by

                              @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_ 1 Reply Last reply Reply Quote 0
                              • Tyller_
                                Tyller_ Best Forum Helpers @Blujey1294-328b9bc4 last edited by

                                @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 Reply Quote 0
                                • B
                                  Blujey 1294 @Tyller_ last edited by

                                  @tyller_ TYSM

                                  1 Reply Last reply Reply Quote 0
                                  • First post
                                    Last post