RTS Game - Setup Teams & Team Coloring

Sdílet
Vložit
  • čas přidán 20. 08. 2024
  • We'll create different teams for each player connected by assigning a team number and team color. I'll show you how to adjust materials so we can assign specific team colors to units and buildings and we'll also use the newly added team numbers to prevent players from selecting other players units and buildings.

Komentáře • 28

  • @GrunkleSoos
    @GrunkleSoos Před 2 lety +10

    Jon, I know it's just the nature of the beast that views go down as a series goes on but I wanted to say thanks for keeping this going!

    • @JoshBrunhoff
      @JoshBrunhoff Před 2 lety +1

      I just found it on search. I think its important to remember that as a reference video the value is in it's longevity. Great series, I agree, Thanks to Jon for running it!

  • @tobiastobasco
    @tobiastobasco Před rokem +1

    Thanks for the tutorial! Just wanted to mention: It's better to add all units you want to remove from the selection array in a temp array. Then iterate over the temp array at the end, and remove from the actual selection array. Otherwise you are removing items from the selection array while iterating over it. This results in units sometimes not being deselected correctly.

  • @itanocircus2077
    @itanocircus2077 Před 10 měsíci +2

    If you started testing as a single player (Number of Players: 1) and changed it back to 2, you might be wondering why
    1.) None of your players can see each other's units and
    2.) All players are apparently Player 1
    Don't go back to the Team Color video! Instead,
    1.) Click the 3 dots at the top of your screen
    2.) Change the number of players to 2
    3.) Change the "Net Mode" to "Play as Listen Server"
    May all your colors return :)

  • @GhostBingo
    @GhostBingo Před 2 lety +1

    Keep up this great series, I like the similarities to SC!

  • @maxdemax2655
    @maxdemax2655 Před 2 lety

    I really love it the tutorials and I'm so gratefulll! I hope you continue with it one day

  • @user-nl8ub4vz3w
    @user-nl8ub4vz3w Před 11 měsíci

    Hi hope u all having a good day i have one problem at the start of the game i cant see my other player could anybody help please??

  • @asmodie
    @asmodie Před 2 lety +3

    Is there a video of units attacking? Can't find it.

    • @buildgameswithjon7641
      @buildgameswithjon7641  Před 2 lety +2

      Unfortunately not due to low interested I stopped the series, but I may come back to it in the future.

    • @asmodie
      @asmodie Před 2 lety +4

      ​@@buildgameswithjon7641 It has been an awesome series to follow. RTS gameplay without all the fuff. The missing piece for me is unit combat. I would be interested to sponsor you to make the content if that is an option.

    • @CT-td9mt
      @CT-td9mt Před 2 lety

      @@buildgameswithjon7641 If you do eventually decide to make that video, I will be extremely grateful. This has all been an extraordinary help. RTS is not a hugely sought after genre so I can understand why it would be less motivating to continue to pour the hours into these videos.

    • @skaughtii
      @skaughtii Před 2 lety +4

      @@buildgameswithjon7641 Putting my 2 cents in that I would be very interested! I've gone through 2 other RTS series and yours is the cleanest and best example for sure.

    • @brandonk.4921
      @brandonk.4921 Před 2 lety +1

      we need this pleaseeeee

  • @Binoxo
    @Binoxo Před rokem

    Having issues with only the server host being able to select all team buildings not clients, so team 0 can select buildings not blue team 1,2 ,3 etc anyone know a fix?

    • @itanocircus2077
      @itanocircus2077 Před 10 měsíci

      If you put in a "Print String", you'll likely find that all players view themselves as Player 0. This is the source of the problem.
      To fix:
      1. Go to RTS_PlayerController
      2. Click the "Team Number" integer variable
      3. On the Details pane, ensure that "Replication" is set to "Replicated"

  • @dariuszwaskiewicz7978
    @dariuszwaskiewicz7978 Před 2 lety

    hey Jon, I have a problem if when starting the game it draws PlayerStartCamp which is rotated, my CameraPawn reverses values as I swipe the screen can you direct me where I have a bug?

    • @asmodie
      @asmodie Před 2 lety

      I have the same bug. 😆

    • @SamaelQuinn
      @SamaelQuinn Před rokem +1

      Rotate the 'Box Colliders' that are used for the spawn location. I had the same issue in other projects, and was able to apply the solution to this as well.

  • @JanMilchFreunde
    @JanMilchFreunde Před rokem

    Hey I have a problem if I did that @14:20 then I can't run my units anymore

    • @ISDISNJH
      @ISDISNJH Před rokem

      having this same issue also after adding team number my units cant even be selected now.

    • @Viarenich_Mikita
      @Viarenich_Mikita Před rokem

      "Team Number" on player controller should be "replicated"

    • @DarrenPrice-lo8hb
      @DarrenPrice-lo8hb Před rokem

      Same, have checked detail options and all seem to be correct. will keep trying to troubleshoot...

    • @topgear2019
      @topgear2019 Před rokem +1

      @@DarrenPrice-lo8hb I was able to fix it by going to the "Handle Building Click Macro", and connecting the false pin from the second branch node to the output.

    • @topgear2019
      @topgear2019 Před rokem

      I was able to fix it by going to the "Handle Building Click Macro", and connecting the false pin from the second branch node to the output.

  • @aspiron9438
    @aspiron9438 Před 5 měsíci +1

    Does anyone know why teams can't see eachother, I've tried the things @itanocircus2077 said here in the comments but still having the same issue