Navigation

    CreatiCode Scratch Forum

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

    So, help.

    Help
    2
    18
    1174
    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

      I have a working targeting system, but every time I get attacked by the bots, my team focuses on me instead of the bots.

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

      TNG 2 Replies Last reply Reply Quote 1
      • TNG
        The Nickname Gov. Best Forum Helpers @SirBots last edited by

        @sirbots, hello!

        Since I’m working on an AI myself, I could help!

        Just send the link and add notes/comments to the ones you want me to fix.
        Also explain the coding blocks you think I may not understand, if there are any.

        I'm back to my OG user! I love this updated pfp so I'm going to use it for The Nickname Gov.

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

          @011830-0a42ef84 https://play.creaticode.com/projects/67a4fbae37d5f05663875cf7

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

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

            @sirbots There’s the ai for both sides.

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

            TNG 1 Reply Last reply Reply Quote 0
            • TNG
              The Nickname Gov. Best Forum Helpers @SirBots last edited by

              @sirbots How do I start it? I press play and nothing happens

              I'm back to my OG user! I love this updated pfp so I'm going to use it for The Nickname Gov.

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

                @011830-0a42ef84 Its just the AI. Nothing else.

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

                TNG 1 Reply Last reply Reply Quote 0
                • TNG
                  The Nickname Gov. Best Forum Helpers @SirBots last edited by

                  @sirbots Can you send me the game that has the bug?

                  I'm back to my OG user! I love this updated pfp so I'm going to use it for The Nickname Gov.

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

                    @011830-0a42ef84 The current version I’m working on has the bug. The released version rn does not.

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

                    TNG 2 Replies Last reply Reply Quote 0
                    • TNG
                      The Nickname Gov. Best Forum Helpers @SirBots last edited by

                      @sirbots, Let me program an AI in my game so I can have the feel of friendly units.

                      I have problems with cloning blocks and working them into it so it may take a while. I’m waiting on @Tyller_ to make my game with clones.

                      I'm back to my OG user! I love this updated pfp so I'm going to use it for The Nickname Gov.

                      1 Reply Last reply Reply Quote 0
                      • TNG
                        The Nickname Gov. Best Forum Helpers @SirBots last edited by

                        @sirbots, Do your units on your team have inf range detection?

                        I mean this as in if you get shot by an enemy, do ALL friendlies on the map (that aren’t dead) hear it?

                        I'm back to my OG user! I love this updated pfp so I'm going to use it for The Nickname Gov.

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

                          @011830-0a42ef84 They don’t use sound. its only when they are in a certain distance of each other.

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

                          1 Reply Last reply Reply Quote 0
                          • TNG
                            The Nickname Gov. Best Forum Helpers @SirBots last edited by

                            @sirbots said in So, help.:

                            I have a working targeting system, but every time I get attacked by the bots, my team focuses on me instead of the bots.

                            I thought you said that they target the enemy if you are attacked. How far is the detection range on this?

                            I'm back to my OG user! I love this updated pfp so I'm going to use it for The Nickname Gov.

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

                              @011830-0a42ef84 No, my team shoots at me when I get attacked by the bots.

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

                              TNG 1 Reply Last reply Reply Quote 0
                              • TNG
                                The Nickname Gov. Best Forum Helpers @SirBots last edited by

                                @sirbots, oh, I get what you mean now.

                                What I would do is add a sprite that works as a zone for the bot’s detection range. When it targets an enemy, make sure that it won’t target the player by using the 'If (touching player)"

                                This may bug when there are multiple bots in the area, so you could add a thin sprite that is a line that connects to the eyes of the bot, so when it sees multiple bots in the original zone, it will turn to target the closest one (the one with the least amt of turning to target). If it is the player, the bot will move on to the other target

                                I'm back to my OG user! I love this updated pfp so I'm going to use it for The Nickname Gov.

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

                                  @011830-0a42ef84 Huh.

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

                                  TNG 1 Reply Last reply Reply Quote 0
                                  • TNG
                                    The Nickname Gov. Best Forum Helpers @SirBots last edited by

                                    @sirbots Does it work?

                                    I'm back to my OG user! I love this updated pfp so I'm going to use it for The Nickname Gov.

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

                                      @011830-0a42ef84 No, I might have to share the unfinished version with you.

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

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

                                        @sirbots The best I can do rn is to just have them shoot at random bots anywhere on the map based on the coordinates on both teams, sadly. It’s still better than randomly firing at stuff

                                        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