Navigation

    CreatiCode Scratch Forum

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

    Need help with finding a way to have fluid aiming at clones without delaying movment

    Help
    2
    5
    95
    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.
    • SirBots
      SirBots last edited by

      So, I updated my new targeting system for the AI in WOC, but, their aiming is very glitchy, as if the coordinate scripts were not updated constantly enough. I have the closest target IDs in both bot sprites reset after shooting at a target, (This is so it finds a new target In case the next closest one is farther away), but for when it shoots, how can I get it to constantly point and follow fluidly at its current Target? Is there any way to fix this? (Will provide both scripts upon request)

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

      Tyller_ 1 Reply Last reply Reply Quote 0
      • Tyller_
        Tyller_ Best Forum Helpers @SirBots last edited by

        @sirbots I believe i have done something like this, the issue is you can’t reference clones with the vairable of sprite reporter (the sensing block that lets you see sprite only vraiables in other sprites and their x y positions) I think they tried that but something changed after a while and reverted it (or it was only for 2d physics blocks)

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

        SirBots 1 Reply Last reply Reply Quote 1
        • SirBots
          SirBots @Tyller_ last edited by

          @tyller_ How can this be updated constantly?

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

          Tyller_ 1 Reply Last reply Reply Quote 0
          • Tyller_
            Tyller_ Best Forum Helpers @SirBots last edited by

            @sirbots I think you should mkae a suggestion where the sensing block I was talking about (variable of sprite) does the reference thing that I had previously suggested it do but my suggestion was only related to 2d physics, the method they made was “cloneid|spritename” to rerfefernce it, it would let you not have to have a list/table of all the x y positions (the issue with that is it has to set to that table every frame, which unless you dont do would be the only way to improve it)

            Send me a picture of the scripts, the only improvement you yourself could probably make with it is either using a turn towards sprite in 0 seconds block or if you dont, use a table/list for target x y positions (I assume you do already)

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

            SirBots 1 Reply Last reply Reply Quote 0
            • SirBots
              SirBots @Tyller_ last edited by

              @tyller_ Alr. I will backpack the scripts into a separate project and share it. (I do use the target x/y lists)

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

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