Character Select From Main Menu - Unreal Engine 4 Tutorial

Поделиться
HTML-код
  • Опубликовано: 3 янв 2025

Комментарии •

  • @YakAttack252
    @YakAttack252 3 года назад +34

    Firstly thanks for all your hardwork Matt. You have taught us a lot. Your tutorials are the most educational on youtube.
    For those that this has not worked for. Simplest fix is to change the default pawn class to your second character in the gamemode section (world settings on your mainmenu map). This fixed it for me to use 2 characters but i needed more than 2 characters .
    Second potential fix which allowed me to use more than 2 characters is below:
    1, Delete the Get Actor of Class Node and the Get Class Node in your character select event graph.
    2. Drag out of Onclicked (yourcharacter) node and type + select Cast to Pawn Class. In this new node, under class drop down, select your character (make sure is placed in the scene at in 10:39 of this tut)
    3. From the Cast to Pawn Class Node, drag out from As Pawn output and promote to variable. (when you do this for other characters you can just drag out from the node and type Set As Pawn and select)
    4. Connect Exec from SET to Cast to MyGameInstance (or whatever you named the game instance.)
    5. Connect purple output node from SET As Pawn to purple character input node on SET Character.
    6. Compile and save and you should now be able to repeat for multiple characters.
    hope this helps.

    • @decorix
      @decorix 2 года назад +1

      Hello Yaq thanks for your help. Is there any chance of posting a screenshot of the node setup?

    • @ktsudeep
      @ktsudeep 2 года назад

      This really worked thanks Yaq, @matt Please pin this on the top, or make a new video.

    • @404notfound_input
      @404notfound_input 2 года назад

      You just shown how to do all tutor in 6 points! )) Thanks

    • @tonybush565
      @tonybush565 2 года назад

      change it to what though? If I change it, it just overrides as that specific pawn

    • @izzyharvin
      @izzyharvin 2 года назад +2

      Only issue I have when doing this is when I select the character nothing happens it stays on the select character. Is it because of my button? I have it laid out as you described while finishing the rest of the tutorial.

  • @istvanszigeti8860
    @istvanszigeti8860 Год назад +11

    Nice video,thanks for it. And you who reading this have the problem when you selected the character and loadet for the level,and cant controll the character use this method.
    1: fullow the video
    2: after you finished the level blueprint possess section you need to go to your character blueprints and change the "event begin play" to the "event possessed".
    3: after "event possessed" cast to your player controller,but dont need the "get player controller" reference because the "event possessed" "new controller" output must to plug in for your player controller "object reference"

  • @therat1657
    @therat1657 3 года назад +10

    For those who couldnt make it work : try not to using 'get actor of class' node but create a pawn class variable instead (dont forget to choosing default class value in details panel). This worked for me!

    • @thebeastrex427
      @thebeastrex427 3 года назад

      So create another variable in the game instance BP? And then from the on clicked at buttons what should I do?

    • @therat1657
      @therat1657 3 года назад

      @@thebeastrex427 instead of using get actor of class node, create a pawn class and use it.

    • @ImNotScotish
      @ImNotScotish 2 года назад

      what pawn class?

    • @Guraw
      @Guraw 2 года назад

      Life saver. Much better technique!

    • @Robert_B_445
      @Robert_B_445 Год назад

      Can anyone explain this in a bit more detail for me?

  • @erook2019
    @erook2019 Год назад +1

    I love you Matt, This video saved me hours of my time on a completely unrelated topic, I wont elaborate because its embarrassing but yea, thank you!

  • @crimsontyrs
    @crimsontyrs 3 года назад +7

    I was so needing this!!! You are the best Matt

    • @MattAspland
      @MattAspland  3 года назад +1

      No problem at all James, glad I could help out! :)

    • @crimsontyrs
      @crimsontyrs 3 года назад

      ​@@MattAspland Okay... not sure where I went wrong but regardless of which character I select it always comes up with the mannequin character, got any Ideas? oh BTW I'm also having trouble getting my lighting to build I've tried a lot of the "fixes" on the net but nothing works. Everything I've seen says I need to build the lightmass in visual studio using the source code but I didn't get Unreal from git so I don't have the code? Thoughts on this matter would be greatly appreciated.

    • @thebeastrex427
      @thebeastrex427 3 года назад

      @@crimsontyrs Have you found a fix?

  • @davegaming2005
    @davegaming2005 3 года назад

    i have no idea how this worked but i have tried two other ones and each time they broke the player controls. thank you man you have been the best throughout my game making and will probably continue to

    • @alexkerasidis
      @alexkerasidis 10 месяцев назад

      How did the others break your controlls? I have the same problem

  • @juniorjohnston2049
    @juniorjohnston2049 2 года назад +3

    Okay guys this DOES still work. although in the menu world, you do NOT need the characters to be placed in already, and in the blueprint where set the code to get actor of class. you do not need that just cast to the game instance and SET the character var right after. use the drop down menu and select the character you want to use.

  • @fixstudios5413
    @fixstudios5413 3 года назад

    Underrated Channel!

  • @dage6131
    @dage6131 3 года назад +1

    You're still making the best tutorials! Thankyou!

    • @MattAspland
      @MattAspland  3 года назад

      Thanks so much man! That means a lot :)

    • @1AnimeFinder
      @1AnimeFinder 3 года назад

      i no right keep it up

  • @JatinderSingh-v1s
    @JatinderSingh-v1s 10 месяцев назад

    love u bro u saved my time i m searhcing for this

  • @stevewynn4612
    @stevewynn4612 3 года назад

    This is great! I’ll be using it this summer when I start on a new game.

  • @Udara1801
    @Udara1801 3 года назад +1

    Very very useful brother,thanks

  • @Drigg2000
    @Drigg2000 2 года назад

    Good tutorial. Thanks. And I have seen/used your tutorial for replicating meshes - great.

  • @que_scopes1224
    @que_scopes1224 3 года назад

    omg you actual know what we all need lol thsnks matt

    • @MattAspland
      @MattAspland  3 года назад

      Haha no problem mate! All the best to you :)

  • @TorQueMoD
    @TorQueMoD 3 года назад +2

    The only thing I wish you had gone over is how to save the player's choice so they don't have to pick their character every time they play. Otherwise it's an awesome tutorial!

  • @umeshcod178
    @umeshcod178 3 года назад +1

    Very useful video sir

  • @Usha-bv7zy
    @Usha-bv7zy 3 года назад

    I was waiting fir this tutorial only

  • @Faizy_Writes
    @Faizy_Writes 3 года назад

    Next Level
    Sir❤️

  • @CrypticaProductions
    @CrypticaProductions 3 года назад +1

    Thank you man, very useful

  • @wolfiedgr8t
    @wolfiedgr8t 3 года назад

    Excellent, thanks Matt ❤️

    • @MattAspland
      @MattAspland  3 года назад

      No problem mate! Thanks for your support! :)

  • @iiior605
    @iiior605 3 года назад

    That was I needed! Thanks a lot🤩

  • @Kadilamri123
    @Kadilamri123 3 года назад +2

    Omg thats exactly what i need . Thx

    • @MattAspland
      @MattAspland  3 года назад +1

      That's great to hear man! No problem :)

  • @g-dojjo
    @g-dojjo 3 года назад +1

    Thanks bro! its very usefull!!

    • @MattAspland
      @MattAspland  3 года назад +1

      No problem bro, it's a pleasure as always :)

  • @ryanpatton1795
    @ryanpatton1795 2 года назад +1

    Wild, it worked one time for me then it hasnt worked since. Cant wrap my head around that one.

  • @GeorgeMutambuka
    @GeorgeMutambuka 3 года назад

    Wish I could spam you with thousands of likes and views.
    Last week I was cracking my skull on how to do this and forums were like "it's easy" but skipping a lot of info and RUclips videos were only showing the menu selection creation part
    but nothing about how to actually get the characters into the level you want.

  • @artiodainlard
    @artiodainlard 3 года назад

    thank you very much!

  • @lucianolombardo4901
    @lucianolombardo4901 2 года назад

    I love you, thanks.

  • @TinoPlusUltra
    @TinoPlusUltra Год назад

    I cannot for the life of me get this to work in unreal engine 5. Every time I set this up it always goes to whatever the world default pawn settings are. If I choose none I get nothing. Any ideas?

  • @thatdudewithfacts
    @thatdudewithfacts 3 года назад +5

    can you make a video about a in game day count(after a day and night cycle its says day 1), then another cycle say day 2 and so on....?

  • @Jsfilmz
    @Jsfilmz 2 года назад

    Anyone know how to get this to work in multiplayer?

  • @Jsfilmz
    @Jsfilmz 2 года назад

    what if your doing the character select in the same level? Im already in the level i just created a menu for character select.

  • @karaemn
    @karaemn 3 года назад

    Thanks a lot! Great 👍

    • @MattAspland
      @MattAspland  3 года назад

      Thanks man, happy to help! :)

  • @PsychoticSorcerer666
    @PsychoticSorcerer666 6 месяцев назад

    I know that you've largely moved on to UE5 at this point, but would you know how to make a scrollbox that populates levels in a list from a folder using Blueprints? I've spent the past week pulling my hair out trying to figure out how to do it.

  • @AnishDeshpande-pj6hj
    @AnishDeshpande-pj6hj 2 года назад +1

    What did you put in the Default Pawn Class in the Project settings? My Project isn't able to choose between the characters. Please help
    Thanks

  • @jmanimations4720
    @jmanimations4720 3 года назад +2

    Can to make a video on how to animate object parts like a drawer of a furniture

    • @MattAspland
      @MattAspland  3 года назад

      Hey mate, I have a video here of opening individual drawers on a chest of drawers. Hope this helps :)
      ruclips.net/video/x7q4Ans3mPk/видео.html

    • @jmanimations4720
      @jmanimations4720 3 года назад +1

      @@MattAspland Τhenks a lot, you are the best !!

    • @MattAspland
      @MattAspland  3 года назад +1

      @@jmanimations4720 No problem man, happy to help!

  • @UnderfundedScientist
    @UnderfundedScientist 3 года назад +2

    Notification squad 🧠

  • @revan_fr3962
    @revan_fr3962 2 года назад +2

    Hey, when I try to start my level after choosing my character, it doesn't work, I think it's in the ThirdPersonExampleMap - Blueprint - Gamemode - pawn, what did you set?

    • @tonybush565
      @tonybush565 2 года назад

      same, i'm guessing it's something in the World Settings but idk

  • @Mygamesworldiq
    @Mygamesworldiq 11 месяцев назад

    Thank you

  • @Grand-warden
    @Grand-warden 3 года назад

    Thank you very much

  • @FFTVYoutube
    @FFTVYoutube 5 месяцев назад

    hi is there a way to make the chosen character as a variable?

  • @mootzartdev
    @mootzartdev 2 года назад

    Cool! How would i change a set Spawn Transform to reference the player start actor as that seems more productive..

  • @Seveno_o
    @Seveno_o 2 года назад +2

    it just selects the same character every time. Can Someone help me?

  • @rickyboyy88
    @rickyboyy88 2 года назад +1

    ive run into a problem after following this vid , when i select my character , the game map loads in but there is no character , just the level . any idea's?

  • @dejandekki
    @dejandekki 3 года назад

    Thanks Matt, very helpful,.. Can you make a video for loading options button with thumbnails?

  • @Devonmadon
    @Devonmadon 6 месяцев назад

    what about the game mode ? and nope it doesn't work well this part was not covered on the default map pawn defaults?

  • @RWOproduction62000
    @RWOproduction62000 2 года назад

    Can't seem to get this to work, making a br game and following along, blueprint is right but nothing. what am I missing?

  • @samholt7667
    @samholt7667 2 года назад

    How would I set up a level select menu on the back of this would I set the level before this screen if so how would I get the reference between screens

  • @valzzu
    @valzzu 2 года назад

    How would this work in multiplayer?

  • @j_dggaming6414
    @j_dggaming6414 3 года назад +2

    can you make a tutorial where you need to finish the game in order to unlock this

    • @elf234
      @elf234 3 года назад +2

      I believe you could just add a boolean for when you have completed the game, and until then hide the character select menu

    • @kraljevskiput
      @kraljevskiput 3 года назад

      @@elf234 can you make tutorial?

  • @marijnfuhler7246
    @marijnfuhler7246 Год назад

    Hey Matt, Thanks for this tutorial, really helpfull. But what if i wanted to change the character when the player is playing inside a level? Can I still change this by selecting a player blueprint? Or do I need to turn on and of a specific mesh on the current player blueprint?

  • @not_vdb0059
    @not_vdb0059 3 года назад

    im gonna watch this thank you matt

    • @MattAspland
      @MattAspland  3 года назад +1

      Thanks mate, hope it helps :)

  • @JoelDiab
    @JoelDiab 2 года назад

    Great tutorial, had one little question and not sure if you'd know how to do this but I have a unique post process volume but the render target 2D camera doesn't seem to take in the post process compared to the regular camera. Would you happen to know a way to fix that? Thanks!

  • @arunkarthik5820
    @arunkarthik5820 2 года назад

    can you explain how to do cast to thirdperson character after this? i am stuck in that part

    • @juniorjohnston2049
      @juniorjohnston2049 2 года назад

      cast to third person character, for the object put get player character.

  • @abdallahahmed2549
    @abdallahahmed2549 2 года назад

    iam packaging my game on andriod but the character selection does not work after packaging, it works well in engine and as standalone game but after packaging when i slect my character it goes back to main-menu , Any help plz ?

  • @ReUpRise
    @ReUpRise 3 года назад

    Everything didn't work until I added the character to the scene with the menu as in the video on 10:39.
    It's a little counter intuitive to add them.
    Is it possible to use another function to find them so they will not present in the scene?

    • @psyco4452
      @psyco4452 2 года назад

      don't know if you found out the answer but i can give on a cue, go in the game instance create a new variable purple pawn object ref ( morelikely : pawn class) change it type to array and now you can ad anything to it , there a + button (atleast in UE5)when doing that variable into the game instance you can now cast it out in any BP/maps needed.) :) ( might face out a problem youl'l have to change some fonctions to cast in a array instead of a existing pawn) ( at the get pawn variable try to use ( get copy of) than pop it will work for 1 model, now you have to set an index, that index need to be cast by the button. so maybe something like set index = 1 than second character =2 ) (cause in the array variable youl set your array = wish Pawn)

  • @neginabh5092
    @neginabh5092 2 года назад

    Thank you Matt but I have a issue when I press play and choose my character I still have my Bottom menu on Game level how can I fix that ?

  • @christianpallaria7751
    @christianpallaria7751 Год назад

    Hi Matt. Great work and many thanks for your video tutorial. I followed the whole process but I am still facing a problem: after opening the level from the menu, the character is swapped properly, but it does not move...do you have any suggestion about a possible issue?

    • @WrathOfAl
      @WrathOfAl 9 месяцев назад

      Im having the same exact issue.

  • @Witz_rider
    @Witz_rider 8 дней назад

    Will this work in ue5?

  • @tonybush565
    @tonybush565 2 года назад

    Doesn't work. idk if there's a specific setting that needs to be ticked in the World Settings?

  • @poxh
    @poxh Год назад

    could i use this for multiplayer?

  • @Elii94104
    @Elii94104 Год назад

    It won't work when I click on the button for my character nothing happens

  • @taariqmartin7743
    @taariqmartin7743 Год назад

    Unreal engine 4 please make a dynamic back button for options I have 2 options widgets one for my main menu and one for my game pause now they are the some exactly the same reason being the back button would not take me to the previous scream now I don't mind sticking to this way but as new levels make there way in this will be a problem so please make a dynamic back button for going back to the previous screen

  • @Grumpius
    @Grumpius 3 года назад +1

    Wow, thank you :D

    • @MattAspland
      @MattAspland  3 года назад +1

      No worries mate :D

    • @Grumpius
      @Grumpius 3 года назад +1

      Sorry, I dont want to be annoying, but how can I do this for Sprites? 😬

    • @MattAspland
      @MattAspland  3 года назад +2

      @@Grumpius You'd do the same method, but in the GameInstance, our character variable. You'd set the variable type to be "PaperSpriteActor" "Class Reference" instead I believe :)

    • @Grumpius
      @Grumpius 3 года назад +1

      @@MattAspland Ok, thanks :D

  • @thebeastrex427
    @thebeastrex427 3 года назад

    I did exactly as in the video, but it will only select the same character always. Any help with this guys?

  • @madridfan9946
    @madridfan9946 Год назад

    Does anyone know how to actually select the second character? Every time I select the second character, the game spawn character ONE..

  • @إسلام-ش7ض
    @إسلام-ش7ض 3 года назад

    hi man and thanks for everything you post it really useful , do you know how to crate your own Character ?

  • @zutsume5375
    @zutsume5375 Год назад +1

    Everything works except for one thing, i can't control my character, like i can't move or anything.
    Despite spawning the right pawn on the right map, etc...

    • @ΚαρέλαςΓεώργιος
      @ΚαρέλαςΓεώργιος Год назад

      Hey Zutsume. Did you solve the issue? I am having the same trouble.

    • @zutsume5375
      @zutsume5375 Год назад

      @@ΚαρέλαςΓεώργιος The issue is that launching the possess node from the level blueprint doesn't to work well, so i made a workaround by creating a widget that appears when called in the level blueprint, and in that said widget i basically adapted what was shown in the video (Sorry if my explanation is weird to understand, if it helps i wouldn't mind quickly contacting you on discord to show you or sum)

    • @ΚαρέλαςΓεώργιος
      @ΚαρέλαςΓεώργιος Год назад

      @@zutsume5375 Thank you for your response. I'll try what you said :)

    • @zutsume5375
      @zutsume5375 Год назад

      @@ΚαρέλαςΓεώργιος no problem, happy to hello with the little i know :)

    • @istvanszigeti8860
      @istvanszigeti8860 Год назад

      @Zutsume i have sam,and i solve it! in your charakter blueprint you must not the event begin play, but also the event possessed

  • @DemonHuntersProfile
    @DemonHuntersProfile 3 года назад

    What game mode settings do I use tho?

  • @Fishos
    @Fishos 11 месяцев назад

    I cant seem to replicate it onto multiplayer any help?

  • @iknowcharley5
    @iknowcharley5 3 года назад

    This was recommended to me

  • @vladaslav
    @vladaslav 3 года назад

    Brilliant man 😁 how would I be able to do it as when I've done the selected characters level and tasks it goes back to the character select menu, but crosses/blackout already played character to make the player do the other character missions???

  • @decorix
    @decorix 2 года назад

    Hi Matt. I have been following the tut, but also can't get it to work :-( When I start from the mainmenu all is fine it goes to playerselect... When I select a character this won't work. It does load in my level map, but its missing stuff like pickups and its not the same when I start from that levelmap it self. How is this possible? so it loading the right map, but pickups and some other things are missing.

  • @doomlord5236
    @doomlord5236 5 месяцев назад

    Can this work in mulyiplayer ?

  • @katkii9871
    @katkii9871 3 года назад

    Can u make it to only do in lobby?

  • @nitinnishad4810
    @nitinnishad4810 3 года назад

    Will this work on Multiplayer too?

  • @milan.980
    @milan.980 3 года назад

    can we do transparent ?

  • @LegitLord2000
    @LegitLord2000 2 года назад

    After months I figured out why it wasn’t working. Casted to the default GameInstance instead of MyGameInstance. So annoying it’s still there to use.

  • @isitsafe535
    @isitsafe535 2 года назад

    is this multiplayer friendly?

  • @LegitLord2000
    @LegitLord2000 2 года назад

    Been trying to figure out what’s wrong for so long, can’t figure out how to get my second person to work. Also I wish it showed how to separate their spawn points

  • @partacanna
    @partacanna 3 года назад +1

    Guys, don't make the mistakes I did. Import the characters, not the meshes. Had to redo the entire thing.

  • @rcsmultimediallc4734
    @rcsmultimediallc4734 2 года назад

    I can't get it to open the level no matter what I do :/

  • @OFFICER125GAMINGOFFICIAL
    @OFFICER125GAMINGOFFICIAL 3 года назад

    its not working for me idk what i did wrong

    • @thebeastrex427
      @thebeastrex427 3 года назад

      It selects the same character for me too. Have you found a fix?

  • @вячеславшандров
    @вячеславшандров 3 года назад

    why does the dummy keep popping up even when I choose SWAT

    • @thebeastrex427
      @thebeastrex427 3 года назад

      Same
      Have you found a fix?

    • @murphy1934
      @murphy1934 Год назад

      @@thebeastrex427 dude they are useing swat bc thats the model they used in the video

  • @ethandobell1442
    @ethandobell1442 3 года назад

    Thanks for this video! Amazing as always! However, for some reason, only half of this works for me... I select one character and that works fine - spawns into the map in the right place, but my when i click on the option for the second character, it spawns me as the first character in a different location. I've rewatched the tutorial a few times and cant figure it out - any thoughts?

    • @thebeastrex427
      @thebeastrex427 3 года назад

      Same
      Have you found a fix?

    • @ethandobell1442
      @ethandobell1442 3 года назад

      @@thebeastrex427 I tried loads of stuff but never managed to find a fix for it. Sorry :/

    • @OldSchoolDo
      @OldSchoolDo 3 года назад +1

      @@ethandobell1442 i had this problem until read a few more posts here and watched the video again ...
      if you watch the video at 10:39 . on the main menu create a cube and a light and drag bother player bp's onto the cube . this worked as i missed this step
      only problem i have now is , the animations on player 2 do not work .. :/ always something

    • @ethandobell1442
      @ethandobell1442 3 года назад

      @@OldSchoolDo it’s never simple, is it?! Always something else lol
      Thank you for letting me know about that bit though - I missed it as well!

  • @JamesGascoyne
    @JamesGascoyne 3 года назад +6

    damn those characters have the aspect ratio of a breadstick lmao

    • @MattAspland
      @MattAspland  3 года назад +3

      Hahaha, that somehow makes sense lmao

  • @TimBorggrenDenmark
    @TimBorggrenDenmark Год назад

    Another TUT - That are not working - GREAT job

  • @DummyxF
    @DummyxF 2 года назад

    😀

  • @Flyingcar1
    @Flyingcar1 2 года назад

    No one help me

  • @GameDevAraz
    @GameDevAraz 3 года назад +1

    Truly Useless, If I May Ask, Could You Spend Some Time To Make A Gun Choice Purchase Menu, Where You Press A Button And You Move To The Next Gun Etc, Menu, For Buying Weapons, Thanks

  • @Mediaist581
    @Mediaist581 3 года назад

    1. you dont make sense. 2. your not showing us how to do it your making us watch you do it.

  • @Ray_joy
    @Ray_joy 3 года назад +1

    Thank you man very useful

    • @MattAspland
      @MattAspland  3 года назад

      No worries dude! All the best to you :)