Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Showcase Training an AI to shoot and dodge in a 2 Player 2D Game with Self Play! (A devlog/tutorial)

Discussion in 'ML-Agents' started by avbiswas, Apr 11, 2023.

  1. avbiswas

    avbiswas

    Joined:
    Jun 10, 2019
    Posts:
    7
    Hey guys! Wanted to share my new devlog about training a competitive AI environment with Self-Play with Unity’s ML Agents. The game is a 2D symmetrical environment where the character can shoot bullets and dodge the opponent’s attacks by jumping, crouching, dashing, and moving!

    I tried to play it myself, but I need more practice. (To be fair, the AI did play a million more games than me) I get lucky and hit it sometimes, but I die like 7 times for one kill. If you guys are interested in this space, do check out this devlog! Leave a like/comment for feedback (that helps the channel).

    Here is the link: