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. Need help with finding a way to have fluid aiming at clones without delaying movment

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

Scheduled Pinned Locked Moved Help
5 Posts 2 Posters 1.1k 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.
  • SirBotsS Offline
    SirBotsS Offline
    SirBots
    wrote on last edited by
    #1

    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_T 1 Reply Last reply
    0
    • SirBotsS SirBots

      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)

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

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

      SirBotsS 1 Reply Last reply
      1
      • Tyller_T Tyller_

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

        SirBotsS Offline
        SirBotsS Offline
        SirBots
        wrote on last edited by
        #3

        @tyller_ How can this be updated constantly?

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

        Tyller_T 1 Reply Last reply
        0
        • SirBotsS SirBots

          @tyller_ How can this be updated constantly?

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

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

          SirBotsS 1 Reply Last reply
          0
          • Tyller_T Tyller_

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

            SirBotsS Offline
            SirBotsS Offline
            SirBots
            wrote on last edited by
            #5

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