Navigation

    Fuze Arena Logo
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    • Help
    • Discord

    How do I make AI for a pong fighting game?

    Help
    2
    8
    578
    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.
    • HeyoMayo
      HeyoMayo F last edited by HeyoMayo

      Right now I am programming a fighting game where two floating paddles (pong) slap each other each until one has no HP left, I got two attacks(quick vs powerful), shielding, frame-data, a health bar that deceases when attacked, and i'm planning to add a final smash-like thing, but I want to be able to have single-player. How do I code AI to handle this?

      1 Reply Last reply Reply Quote 1
      • Skullo
        Skullo last edited by Skullo

        Hi!
        I don't know if I understood you well, but if you want to implement a battle system with enemy AI you can check out my project (WARFLAGS: X2A63MND1V) to get some ideas. I'm using also two attacks (quick and powerful) and magic attacks including projectiles like rockets or bullets.

        An example of combat in my game:

        HeyoMayo 2 Replies Last reply Reply Quote 3
        • HeyoMayo
          HeyoMayo F @Skullo last edited by

          @skullo Nice! i'll check it out

          1 Reply Last reply Reply Quote 1
          • HeyoMayo
            HeyoMayo F @Skullo last edited by HeyoMayo

            @Skullo I just finished with the CPU AI, it was surprisingly simple once I got in the flow of adding inputs and outputs. Now there's singleplayer support :) probably going to share it at some point this tonight (I had a BLAST playing it with my friends)

            Skullo 1 Reply Last reply Reply Quote 2
            • Skullo
              Skullo @HeyoMayo last edited by Skullo

              @heyomayo Nice! Looking forward to seeing the result!

              HeyoMayo 1 Reply Last reply Reply Quote 0
              • HeyoMayo
                HeyoMayo F @Skullo last edited by HeyoMayo

                @skullo the code is 51SC7MNDX5

                Skullo 1 Reply Last reply Reply Quote 1
                • Skullo
                  Skullo @HeyoMayo last edited by

                  @heyomayo said in How do I make AI for a pong fighting game?:

                  @skullo the code is 51SC7MNDX5

                  I played it last night and I found it very funny!

                  HeyoMayo 1 Reply Last reply Reply Quote 1
                  • HeyoMayo
                    HeyoMayo F @Skullo last edited by HeyoMayo

                    @skullo I'm glad you found it funny, I really like it when my dumb jokes make someone laugh. I was considering adding unlockable lore considering how fun the high scores were for me to play and code (although I don't know if my weird sense of humor crosses the line).

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