How to Swap Character when pressing a Button in Unreal Engine 5

Поділитися
Вставка
  • Опубліковано 29 січ 2025

КОМЕНТАРІ • 65

  • @exakelgaming
    @exakelgaming Рік тому +6

    good video. been looking for something like this to experiment with. I also found that the "set skeletal mesh asset" node works great if you want the 2nd character to have a different model appearance.

  • @jpleavit
    @jpleavit Рік тому

    Thank you so much for this tutorial! This is so clean! I did the same thing but used the Multigate node with "loop" enabled (instead of Flip/Flop) so I can switch to more than two 1stPerson characters. I'm doing this instead of teleporting 1 because its easier but 2 because I can change the appearance of the scene based on what character is active.

  • @tyronejackson1491
    @tyronejackson1491 2 роки тому +10

    I was interested in this tutorial, just in time. Thank you!
    If you can improve it further: how to have a "party" of 3 characters following you and fight along you against enemy AI. And you can swap between this characters in the game. (Like in Clive Barker's Jericho) And if they hurt, you can heal the others. Thank you!

    • @GorkaGames
      @GorkaGames  2 роки тому +1

      Thank you! Yeah great idea! That would be very cool, let me note that idea down!

    • @untoldlegendsllc
      @untoldlegendsllc 2 роки тому +1

      @@GorkaGames I would love to see this also, Great content btw

    • @GorkaGames
      @GorkaGames  2 роки тому

      @@untoldlegendsllc Thank you! Yeah I have it noted down, I will let you know when it comes out

    • @kristian6063
      @kristian6063 2 роки тому

      I would love this too. I'm working on a game where you swap between 2 characters, but while you're the 1 character I want the other to be able to follow at the press of a button, but the 2nd character only does this before swapping characters. Once you swap characters and possess them I cant get them to AI Move To anymore.

    • @wilmerassis
      @wilmerassis Рік тому

      I would also like to know this, I am creating a game with 4 characters where each one would have a skill, and I needed to switch between them, in addition to that everyone must follow the character possessed.

  • @habibmensch7368
    @habibmensch7368 Рік тому +5

    can you make a tutorial for switching between 2 different metahumans?

  • @habibmensch7368
    @habibmensch7368 Рік тому +4

    Thank you forthe tutorial! I am trying to toggle between characters instead of switching to a character that is visible in the level, meaning: with a press of a button, I want to hide the current character and switch it out with another one in the same spot. How would I do that?

    • @TheCartMAN1
      @TheCartMAN1 Рік тому

      I was trying to do the same thing and don't know how either if you know now any Ideas?

    • @michaelkukula5926
      @michaelkukula5926 Рік тому

      @@TheCartMAN1 did either of you figure this out? I want to know too

    • @TheCartMAN1
      @TheCartMAN1 Рік тому +1

      @@michaelkukula5926 if you use a parent character object and multiple child character objects you can switch between them while using the same controller

  • @poorvpatidar6305
    @poorvpatidar6305 Рік тому +1

    Thank you it is very helpful ❤❤

  • @gigasoftgaming
    @gigasoftgaming Рік тому +1

    Hey, I want a third person to first person camera mode, but my problem is the tutorials I found kust change the camera, when I do that nt camera goes weird because of my animations move the head, my question is, is there a way to instead of change the camera, just change to a new blueprint? then I could freely control how my first person camera looks and how mu third person looks?

  • @Roofinqs
    @Roofinqs 3 місяці тому

    Can you do it, to where you have to select something in a menu in game and only having one playerable character on screen at a time

  • @geistdylan
    @geistdylan Рік тому +1

    at 2:41 I don't have that option for my character. Any chance you know why?

  • @Witz_rider
    @Witz_rider 29 днів тому

    hello is it possible to do the same just by widget button?

  • @PatoGamerG
    @PatoGamerG 3 місяці тому

    Good video but a quick question... How do you make you can change the character and not the color?

  • @eikkou250
    @eikkou250 Рік тому

    this worked perfectly for me. Can the unpossessed player perform some idle animation, look around, or something like that?

  • @TrapStream
    @TrapStream 2 роки тому +1

    Any idea of making procedural tool or plugin something?

    • @GorkaGames
      @GorkaGames  2 роки тому

      I have a tutorial on procedural foliage: ua-cam.com/video/HHHYkeKkH7Y/v-deo.html And about the terrain, you would need some perlin noise. Which is like a procedural black and white texture that would define the terrains heght etc. UE has an perlin nise node in materials I believe. ANd then you would need to generate at runime that terrain on those coordinates. Its a bit complex, but let me know if this helps!

    • @TrapStream
      @TrapStream 2 роки тому +1

      @@GorkaGames Let me check that.

  • @rahulvyas4020
    @rahulvyas4020 Рік тому

    How do I create an event if I don't want to switch it on press of a button, when I have an object such as a ball. With my character? Without ball it should be changed on button but with the object, it should change with a pass only

  • @allaboutandroid12
    @allaboutandroid12 2 роки тому +3

    Make transition between change cameras like GTA game please 🥺 I really like this make video bro I support you full .

    • @GorkaGames
      @GorkaGames  2 роки тому +2

      thanks! Yeah good idea, I will note it down!

  • @LWSR_
    @LWSR_ 9 місяців тому

    Hi! I have an online game (dedicated server). Please tell me how to make sure that the character is not deleted when exiting the game. If there is PVP, then the player can cheat and press Alt+F4 I need a delay

  • @Le_Senpai
    @Le_Senpai 9 місяців тому

    Good video ! Please can you do another one so that the Characters swap positions?

  • @_joshuazack
    @_joshuazack 2 роки тому +1

    Any idea for making a smooth camera transition? or do i have to use another character swapping method?

    • @GorkaGames
      @GorkaGames  2 роки тому +1

      you can use a timeline and then lerp between the 2 cameras with an extra one

    • @_joshuazack
      @_joshuazack 2 роки тому

      @@GorkaGames Thanks!

    • @Speros240
      @Speros240 6 днів тому

      @GorkaGames could you explain more how to do that. thanks

  • @sumantbag01
    @sumantbag01 15 днів тому

    following the video, I used a pawn with a camera in it and a third person character, but whenever I switch to the third person character, it can't move or see around, how to solve this ???

    • @sumantbag01
      @sumantbag01 15 днів тому

      the auto possess player for the pawn was player 0 and disabled for the third person character...

  • @Ftradorex-oficial
    @Ftradorex-oficial 2 роки тому +2

    This is cool. Well done.

    • @GorkaGames
      @GorkaGames  2 роки тому

      thank you!

    • @ChinchillasSaltnPeppa
      @ChinchillasSaltnPeppa 11 місяців тому

      If i wanted to completely change the mesh for the 2nd character, how would i do that? Also, how would I add more characters to this? (Like 6) and how would i make the other characters follow the current player using ai?@@GorkaGames

  • @YG-we7cl
    @YG-we7cl 5 місяців тому

    In the same spirit, how would you swap the current character to a "new" one. Imagine, in the RPG series an ability to change into an animal for example (or any other creature).
    Do you have all characters created at startup and hide the ones not in use? And switch between them with an animation?
    Do you have another idea? Maybe a future episode for the RPG serie?

  • @DZUSSAMA3AAA
    @DZUSSAMA3AAA 2 роки тому +1

    how can i do this if i have player (HUD BP) ( stamina , health ) for each (character BP) ? i tried but it didn't worked

    • @GorkaGames
      @GorkaGames  2 роки тому

      What exactly do you mean? Have different health, and stamina values for each player? That is already implemented

  • @kaisjelassi7427
    @kaisjelassi7427 5 місяців тому

    Merci pour ta vidéo

  • @zachwise476
    @zachwise476 7 місяців тому

    THANK YOU!

  • @suhunyakehidupan9837
    @suhunyakehidupan9837 2 роки тому

    Hi something is bothering me, I don't know why but the true and false doesn't work, it only change the material once

  • @sheanjay
    @sheanjay Рік тому

    can you please share how to switch ai companion pet and player

  • @aditya_divatee
    @aditya_divatee 6 місяців тому

    tutorial of full map system and if we presson x positon on map a marker will show on level

  • @Phoenix4_Trade
    @Phoenix4_Trade 2 роки тому +1

    we need game from zero 🔥🔥

    • @GorkaGames
      @GorkaGames  2 роки тому

      🤔🤔I am thinking of that!! A very small series from making a simple game from zero!!

    • @Phoenix4_Trade
      @Phoenix4_Trade 2 роки тому

      @@GorkaGames i think make zombie game

  • @lordkanesoulreaver
    @lordkanesoulreaver Рік тому

    fallowed and redid the steps over sevrial times and its not doing any thing exapt just controling the starting pawn

  • @blakevictor6072
    @blakevictor6072 Рік тому

    I am having a major issue. This works great in the editor, however when I package the game, It does not work properly. the first "character" works fine, but the second just disables input and goes to the 0,0,0 world coordinates. Super frustrating that I cannot diagnose in editor and have to export every time to see if its working properly, any advice? I will pay you for your time if you can help me get this straightened out.

  • @Expexium
    @Expexium Рік тому

    thanks you so much

  • @QTupe
    @QTupe 2 роки тому +4

    If you changed between characters while moving/jumping the other character will keep playing that animation, any fix?

    • @GorkaGames
      @GorkaGames  2 роки тому +2

      what you can do is to call the "disable movement immediately" node from the character movement component when you swap

    • @exakelgaming
      @exakelgaming Рік тому +1

      @@GorkaGames perfect.

    • @exakelgaming
      @exakelgaming Рік тому

      @@GorkaGames I discovered that I was still stuck in a fall idle state when switching so i what i did is check if the character is falling, take their current location and deduct the height of the floor from 0 on z axis (in my case the gap was 90). that should drop the character correctly even when they are jumping on high sections of a map.

    • @uqasz2448
      @uqasz2448 Рік тому

      @@exakelgaming I doing it right now, but i thinking about animation for switching, and bools (is moving and is on the ground) - soo u have to stop to cast it for a sec.

    • @JeffreyZweigII
      @JeffreyZweigII Рік тому

      Yeah still having issues with this aspect of it. Got the movement itself to stop but the animation keeps running.

  • @JakeBone
    @JakeBone Рік тому

    i made an army of characters that are undeletable, but it works, i still made it tho

  • @Slektra
    @Slektra Місяць тому

    если еще добавить пару функций то из этого можно сделать хороший переключатель между видами лица первое либо третье спасибо)

  • @mateoandrescano3685
    @mateoandrescano3685 2 роки тому +2

    Thank you for when in Spanish?

    • @GorkaGames
      @GorkaGames  2 роки тому +2

      Gracias por ver el video! Dentro de poco estare traduciendo algunos videos al español

  • @CostaGeo6683
    @CostaGeo6683 2 роки тому +1

    Leeeeeeegend

    • @GorkaGames
      @GorkaGames  2 роки тому +1

      😄😄 YOU are a legend

  • @galatei11
    @galatei11 3 місяці тому

    Tight coupling and hard dependencies, this is quite a bad practice what is shown here. You should not use that in game.