Тёмный

How To Create Portal Doors | Teleporting - Unreal Engine 4 Tutorial 

Matt Aspland
Подписаться 81 тыс.
Просмотров 28 тыс.
50% 1

Hey guys, in today's video, I'm going to be showing you how to create portals in which you can teleport through. You can go from portal to portal and easily set up as many as you want to have, all in one simple blueprint.
Interacting With E Key: • Picking Up Objects Wit...
#Ue4 #UnrealEngine4 #Ue4Tutorial
___________________________________________________________________________
00:00 - Intro
00:18 - Overview
01:02 - Tutorial
18:33 - Final Overview
19:13 - Outro
___________________________________________________________________________
Unreal Engine 4 Tutorials Playlist: • Unreal Engine 4 Tutorials
The Basics Of Nodes Playlist: • The Basics Of Nodes In...
Blender Tutorials Playlist: • Blender Tutorials
___________________________________________________________________________
If you enjoy make sure to subscribe: / @mattaspland
Join My Discord Server: / discord
Follow Me On Instagram: / matt_aspland_
___________________________________________________________________________
If you want to support me, you can PayPal me at "matt.aspland.1@gmail.com". This is by no means expected or required. It is just a nice support :)
Link to PayPal: www.paypal.com/
You can also support me on Ko-Fi following this link: ko-fi.com/mattaspland
Thank you :) ___________________________________________________________________________
♫Music By♫
●Kronicle - Chill Noons
●Soundcloud - / the-chemist-10

Опубликовано:

 

1 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 136   
@Gevandrow
@Gevandrow 5 месяцев назад
your tutorials are really good. good quality, well explained, understandable talking etc. keep up good work many of your tutorials helped me a lot
@gurvinderatwal3623
@gurvinderatwal3623 2 года назад
Thanks so much bro. Amazing tutorial!
@PatrickTheDM
@PatrickTheDM Год назад
Another fantastic tutorial!
@zhejunlyu3734
@zhejunlyu3734 3 года назад
Amazing tutorial!
@joshuawolford5808
@joshuawolford5808 2 года назад
This is great. All of your tutorials have been very useful. I was wondering if you know of a way to create teleporters with multiple exit locations and maybe have a menu open when entering the portal so you can choose your exit portal.
@Coroxx
@Coroxx 2 года назад
great video easy to follow lots of different ways to implement this in your project :P
@mateuszsieczka7989
@mateuszsieczka7989 3 года назад
Another good tutorial. I really appreciate that You are preparing before making tutorial. Waiting for more.
@MattAspland
@MattAspland 3 года назад
Thank you man, I appreciate your support and feedback. Thanks again! :)
@robotjellyfish3209
@robotjellyfish3209 Месяц назад
cool this works perfectly. the only thing i changed was instead of using a static mesh for my exit reference, i used a billboard. this way i dont have to check a bunch of boxes to make it inert ingame. thanks
@natishmaac
@natishmaac 2 года назад
You are awesome.......as always simple and great tutorial....
@CrySevastopol
@CrySevastopol 8 месяцев назад
Thx for you!
@theofficialamt6626
@theofficialamt6626 3 года назад
Great Tutorial!
@MattAspland
@MattAspland 3 года назад
Thanks man!
@GaryParkin
@GaryParkin 3 года назад
I agree with Steven. You've outdone yourself! So I took this and ran with it. What if? And yes it works and it's stupid simple... What if you started a fresh FirstPerson shooter project, and set the projectile to not bounce (uncheck this). the yellow ball sticks to a wall. See where I'm going? Next, in the FirstPersonBlueprint, you save the Projectile as a variable, you set up an AltFire with the F key and as soon as the ball sticks to a surface, you GetWorldLocation on the projectile, next SetActorLocation on Self, then DestroyActor on the Projectile. This creates a shoot-able teleport object for the player. It's sweet! Now you can get to that top ledge. I'm sure you could recreate Portal really easy with this. Thanks Matt.
@MattAspland
@MattAspland 3 года назад
Thank you so much Gary! That's an amazing idea, you could definitely replicate portal like that yeah! That would be something nice to do too, nice work!
@GaryParkin
@GaryParkin 3 года назад
@@MattAspland I've got a working prototype of this. It works sweet!.. I just haven't worked out how to reverse the player when the ball sticks to the wall. It leaves the player facing the wall. I know there's a way around this. I just don't see it at the moment. I was watching your bullet hole video trying to work out how to make a Portal game. I think I'm finally getting this.
@MattAspland
@MattAspland 3 года назад
@@GaryParkin Oh cool nice, that sounds great! Also, could you just multiply the Z rotation by -1 to get the reverse of it? I'm not sure if this will work in your code, but that's the general way of doing it :)
@salomefayazi7242
@salomefayazi7242 3 года назад
Your tutorials are amazing! Thank you so much for your great content it helps me a lot
@dendk
@dendk 2 года назад
Is there a way to make the sceneCaptureComponent2D work for each portal? So it appears as a window rather than a coloured block? I've attempted to get it to work, but it only captures one window and is displayed the same on all of them.
@luqmanhakeem6539
@luqmanhakeem6539 3 года назад
Love the video😍
@MattAspland
@MattAspland 3 года назад
Thanks so much! :)
@josedejesusmartinezavalos1403
@josedejesusmartinezavalos1403 3 года назад
Excellent video, Thanks ")
@MattAspland
@MattAspland 3 года назад
Thank you so much, I really appreciate that! :)
@battyfurz1786
@battyfurz1786 3 года назад
Thanks for another great video
@MattAspland
@MattAspland 3 года назад
No problem! :)
@ParkinsonMax
@ParkinsonMax 3 года назад
Amazing tutorial, thank you! I have an issue which is that I teleport always facing the portal I just came out of, instead of forwards facing, can't figure it out!
@stevenwynn819
@stevenwynn819 3 года назад
All sorts of good techniques in this one. You've outdone yourself!
@MattAspland
@MattAspland 3 года назад
Thank you so much Steve!
@Lipe_FL
@Lipe_FL 9 месяцев назад
thx you, merci^^
@mikaznavodya9300
@mikaznavodya9300 2 года назад
amazing bro
@alan_ars
@alan_ars 3 года назад
Great!! I implemented your code today in my Side Scroller 2.5D project and I can already replicate the Super Mario Bros series experience with teleporting via pipes. Thank you so much Matt!!
@smcfadden1992
@smcfadden1992 6 месяцев назад
Can you use this to adjust the characters scale when they go through the portals?
@dc37wwe2kmods
@dc37wwe2kmods 2 года назад
Is there any way to make the player face the correct direction of the exit portal? The portal works if they are in the opposite direction of each other (like in the vid). But if they are in the same direction when you go out, you will be facing the wrong direction.
@crazyAlexander23
@crazyAlexander23 11 месяцев назад
I guess find the rotation of the exit portal and make it go in the third person character
@GearheadMedia_
@GearheadMedia_ Год назад
Does this work across levels? So, can you have the enter door on level 1 and the exit door on level 2 and still achieve the same effect?
@abdullahsohail5395
@abdullahsohail5395 3 года назад
Nice video great work
@MattAspland
@MattAspland 3 года назад
Thank you! :)
@SophieBast
@SophieBast 3 года назад
This is very helpful and informative, I feel like I've learned a lot, thank you!!
@ЗдесьЖиветУитли
@ЗдесьЖиветУитли 3 года назад
Thanks, but you can make everything go through a cannon?
@lolasteam6556
@lolasteam6556 2 года назад
I have followed all the directions for this tutorial and my portal still is not working. My character is not being transported to the other door. I have one door set to entrance and the other not. I am not sure that I am doing wrong. Please advise as to what I could do to fix this issue. I am also using UE4 4.26 and 4.27.
@MoshiMoshiDoppio
@MoshiMoshiDoppio Год назад
11:38 Doesnt the initial branch already check to make sure the current portal is not an entrance?
@itsglobe
@itsglobe 2 года назад
How can I make that instead of teleporting the player by hitting it or overlapping it, teleport the player by interacting with a key?
@ue4dev249
@ue4dev249 3 года назад
Simple and effective
@MattAspland
@MattAspland 3 года назад
Thank you man!
@user-xo5jg4lc9c
@user-xo5jg4lc9c 3 года назад
Is It possible to teleport not only my character but also the actor? I want one of my actor blueprint teleport just like what you did in your video.
@Drigg2000
@Drigg2000 3 года назад
Thanks for the tutorial! I cannot find a tutorial that enables a first-person player character to teleport. What node do you use instead of 'Cast to third person character'? i.e. I don't have any character actor to cast to. Thanks for any help you can give me.
@matteo398
@matteo398 2 года назад
Cast to FirstPersonCharacter if you use the FPS prefab project. (Cast to *Your character Blueprint Name*) Should work
@E36_shayne
@E36_shayne 2 года назад
when i enter the portal my game says infinte loop and says function and for loop?
@GearheadMedia_
@GearheadMedia_ Год назад
Does this work across levels?
@stormr
@stormr 2 года назад
This works grat for me on 4.26.2. although I have to set the exit location on the variable, it doesnt work from the details pane. One thing I need to figure out though is how to set the character to teleport and face away from the portal so it doesnt keep going back and forth. Any ideas?
@stormr
@stormr 2 года назад
figured it out, just add set actor rotation at end and plug into character then set to 90 degrees
@RCLIFTOFFGuy
@RCLIFTOFFGuy 2 года назад
I noticed if the portals aren't facing each other regardless of the location, you don't come out facing forward.
@alexanderdimitrov7965
@alexanderdimitrov7965 2 года назад
how to make the player teleporting facing concreteble axe...Y or X or Z
@slackamacgaming6721
@slackamacgaming6721 3 года назад
Is there a way to make these work between different LEVELS? I tried an enum with array...but I'm still stuck...
@MattAspland
@MattAspland 3 года назад
You could maybe try an "Open Level" to open to the level you want, and then set the location as one relative inside of that new level? Hope that makes sense
@logandoejogando...7532
@logandoejogando...7532 3 года назад
Very good tutorial, so I can't use the other side to do the reverse 4.26.
@EmojixOfficial
@EmojixOfficial Год назад
dark deception teleportation sound effect be like. good tutorial tho
@andresestevez2701
@andresestevez2701 Год назад
mmmmm tiene un bug hacer esto, aveces no sale del la colisión y entra en un bucle infinito, otra forma seria sumar en xy para salir de la colision
@monster6236
@monster6236 2 года назад
Hey, great video! I did this in first person and only issue I am facing is that my player character comes out of the other portal looking at the portal instead of facing away from it. Hopefully i can figure it out
@angelo2624
@angelo2624 11 месяцев назад
can you kindly share the solution , i'm kinda in the same situation right now
@monster6236
@monster6236 11 месяцев назад
Hey, i dont think i ever figured it out and ended up using a different tutorial by UnrealCG @@angelo2624
@tomix604
@tomix604 2 года назад
How to make it work in multiplayer?
@ghstproject
@ghstproject Год назад
If event hit doesnt work you can also do it on overlap with collision
@JasonErdmann
@JasonErdmann 2 года назад
Nice instruction. But you do not need the check in the second loop for "Entranc? NOT" because you already branched that way earlier. I understand why one might do it the way you did for the sake of the tutorial (other than double testing Entrance? NOT). But, if you know you only have pairs (one entrance = true, one entrance = false) for a given index you can do this with a single loop. Test: Target Entrance? != Entrance? and AND it with the == to the branch.
@TheJudge3
@TheJudge3 Год назад
Thanks
@DirtyPoopers
@DirtyPoopers 3 года назад
Great stuff! (video request) I want a stationary camera for when I enter a "save room" in my game. The game is 3rd/FP toggle, but I want a camera like resident evil/silent hill for the save room. I was trying a collision box, but cant figure how to call the new camera properly.
@MattAspland
@MattAspland 3 года назад
Thank you, and great idea! I can definitely look into doing that soon :)
@danisafilthycasual
@danisafilthycasual 2 года назад
im going through it now and the audio in this video seems to be a bit quicker than usual and im having to do a lot of going back, pausing, and such - which is fine, but on this one, more than normal
@sauravbhagat4150
@sauravbhagat4150 3 года назад
PLEASE HELP!!!! Hi.. SO I am working in 4.26 and a lot of things are done in this one which i just cant do in 4.26. For example Array element does not simply connect to portal index without doing a work around of casting the portal, Second it also does not connect with exit reference instead it makes it a root component. Bottom line is its just NOT WORKING out for me or dare i say in this version of the engine. Is there a way to do it similarly like you did or any other way which will give the same results in 4.26 ?
@JasonErdmann
@JasonErdmann 2 года назад
I was able to get this to work in 4.26.2. Double check that you name everything as it is in the video. I changed "Entrance?" to "IsEntrance", just a preference, and I couldn't figure out why I couldn't get it from the Array Element. It took me 15 minutes to realize I just needed to type "get IsEntrance" because I kept typing "get portal IsEntrance".
@sauravbhagat4150
@sauravbhagat4150 2 года назад
@@JasonErdmann Yeah I figured out a long time ago. But thanks anyways.
@Hiroshi_G
@Hiroshi_G 3 года назад
why when I get in the portal it disappears?
@jeromy5172
@jeromy5172 2 года назад
Is there have a file that we can download pls?
@fancydudemanbro1158
@fancydudemanbro1158 2 года назад
I've gone through everything multiple times, and I can't figure out why, but the "entrance?" and "portal index" aren't showing up in the actor details. So I can't check the "entrance?" box. Any idea where I might have gone wrong?
@fancydudemanbro1158
@fancydudemanbro1158 2 года назад
Nvm I fixed it. I made them instance editable.
@danila7470
@danila7470 3 года назад
I don,t have cast to thirdpersonchacter
@crimsontyrs
@crimsontyrs 3 года назад
would this work to be able to go from one level to another?
@savon5860
@savon5860 3 года назад
was just wondering this too
@hiroakikobayashi6281
@hiroakikobayashi6281 3 года назад
I use UE 4.26.1 and can't find "get portal index" in selection of Array element (8:00 in the tutorial) Am I something wrong ? or is that a specification in that version ? (Edit) this is a great tutorial, thanks!
@curiouspanda808
@curiouspanda808 3 года назад
im having the same issue as well did you solve?
@hiroakikobayashi6281
@hiroakikobayashi6281 3 года назад
@@curiouspanda808 I tried connecting the Array Element output to "Cast to PortalBP" node, then converting the node to pure cast node. Finally I could connect As portalBP output to "Portal Index". You can see option "convert to pure cast" in pin action by right clicking the node. I'm learning English so not fluently, I hope this will help you :)
@curiouspanda808
@curiouspanda808 3 года назад
@@hiroakikobayashi6281 Awesome Thank you for the work around!
@KathiCurry
@KathiCurry 2 года назад
@@hiroakikobayashi6281 This needs to be pinned and upvoted
@dirktempest7075
@dirktempest7075 Месяц назад
how to make the portals one way like you can go back through the portal
@MEXpartan
@MEXpartan 3 года назад
I've seen many different tutorials on teleporting, and I am experiencing the same issue in all of them. When my character teleports, it always falls through the floor. I am only experiencing this when I teleport my character to another actor blueprint class, but not when I use the same actor. Any solution to this issue?
@Yami_Five
@Yami_Five 2 года назад
Check the Z position of your actor, it's for sure higher than 0 and Z position of portal is 0. So you just have to add character's Z value to portal's Z before settings actor location.
@jeetthakker9143
@jeetthakker9143 3 года назад
Can you do a tut on skydiving? I mean if you are falling from a high altitude you have a falling animation
@smokinglife8980
@smokinglife8980 3 года назад
This is pretty simple. Get a falling idle animation from mixamo or make one then you want to check if the character is falling with the is falling node from character movement component and if they are then play the animation. I’m not great at explaining things but this has been done many times you can learn how to do this from just looking at the third person template in the animation bp the jump loop animation is and the shit that is making that work will work just fine for a falling if I’m correct. I’m new to unreal so yeah
@yezukao
@yezukao 2 года назад
Hello Matt! I really appreciate your tutorial videos on UE4. I tried following your tutorial and my character is FirstPerson so I dragged the other pin to cast to FirstPersonCharacter. I do also realize because of this I cant find a get target to portal index so I made a Cast to PortalBP and convert the node to pure cast and get the portal index from there. The teleport actually works, its just that I'm teleported to an unknown coordinate far away from the exit location TT. I got error messages that goes along by "blueprint runtime error accessed none trying to read property k2node" and "blueprint runtime error: "Accessed none". Blueprint: "portalbp" Function execute ubergraph portal bp Graph EventGraph Node: SetActorLocation" Sorry for my English, its not my first language Please help me! Thank you
@OlovidPhone
@OlovidPhone Год назад
Any Update on this mate?
@ignaciocristina4059
@ignaciocristina4059 Год назад
​@@OlovidPhoneAny update? Do you know how to do it with first person character?
@OlovidPhone
@OlovidPhone Год назад
@@ignaciocristina4059 yes, I casted it to bp_firstperson and it worked the way its shown in the video. If you place 2 portals without scaling them in the world it worked perfectly
@Transcriptor
@Transcriptor 6 месяцев назад
a better idea is to link each destination level to a micro model of it, instant menu
@mrstarfire9336
@mrstarfire9336 2 года назад
This is such a simple blueprint.....Yet somehow i cant get it to work ...It keeps teleporting the door on top of the exit ..Rather than teleporting the player..Using unreal 4.27
@Side_effect_stu
@Side_effect_stu Год назад
Nice tutorial but I followed it from start to finish but my character can't use the same portal he came out from just like in the the video and it's pretty annoying
@ninyqin7086
@ninyqin7086 2 года назад
Hi Matt, I have a suggestion about this video. Can you talk a bit slower? Because your mouse is already moving very fast that I have to rewind 9 times just to understand what happened. Thank you.
@nextanvil3346
@nextanvil3346 3 года назад
I wonder can you apply a job as a blueprint programmer instead of c++ programmer
@MattAspland
@MattAspland 3 года назад
I think you probably could, it is becoming more and more popular in the industry. Just got to find somewhere. Most indie places probably would. All the best of luck :)
@narrgamedesigner2747
@narrgamedesigner2747 2 года назад
My portal are teleporting instead of the character...
@grandtheftauto-goktug9127
@grandtheftauto-goktug9127 3 года назад
first
@Dazz-tb6xd
@Dazz-tb6xd 2 года назад
None of this worked for me:(
@omnianima4540
@omnianima4540 3 года назад
Awesome tutorial, it worked directly with my Character Ingame, but somehow I cant get it to work with another actor. I made a normal actor (Name:TeleportationObject), gave it a cube static mesh with box collision. Went into the PortalBP and said "Cast to TeleportationObject", done everything else the same, but when my Character moves the cube towards the portal nothing happens...hmmmm I checked the collision and overlap settings of that actor, everything looks fine smh
@omnianima4540
@omnianima4540 3 года назад
I would really appreciate any answer to this oof
@MattAspland
@MattAspland 3 года назад
Hey, can you check to see if the cast is failing? To do this you could get a print string off of "Cast Failed" for your actor "Cast to TeleportationObject" and test it again. If you see it print in the top left of your screen, that's where the issue is
@omnianima4540
@omnianima4540 3 года назад
@@MattAspland Thank you for the answer first of all. I tried the print string after setting the "cast to teleportationobject", but it seems that there is no hit event interaction at all when this "cube actor" meets the portal...but if I move there with my character, it prints out the String that comes out of the cast failed node. So I guess it must be the settings of the actor, but Ive tried any combination now, it just doesnt interact...
@MattAspland
@MattAspland 3 года назад
@@omnianima4540 Oh strange okay, can you maybe send over (possible via screenshots if it's easier) your collision settings for the cube actor and portal doors?
@omnianima4540
@omnianima4540 3 года назад
@@MattAspland Hey Matt, thank you for helping out, I've created the screenshots of all possible collision settings, as I said it works with the normal character but not with the cube actor (and sorry for the name conventions, didn't know id share everything haha) drive.google.com/drive/folders/12slf78LG5x5dNjpigqcjTTfyrLFQhJzn?usp=sharing
@Dazz-tb6xd
@Dazz-tb6xd 2 года назад
I could not follow some of these steps went a bit fast
@mirapakulinek
@mirapakulinek 3 года назад
I want this Go to door And start scutscne ( And tp to next level )
@MattAspland
@MattAspland 3 года назад
Nice idea, I can add it to my list
@mirapakulinek
@mirapakulinek 3 года назад
@@MattAspland OH yeah boi You want add this on your list ?? Nooo you must add IT !!!!!
@Bentley0312.
@Bentley0312. 3 года назад
IT WONT WORK
@MattAspland
@MattAspland 3 года назад
Hey, which part isn't working for you? Is any of it working? If you want, you can email me some screenshots and videos of your code and the issue. My email can be found on my channel's about page
@Bentley0312.
@Bentley0312. 3 года назад
@@MattAspland I will send screenshots, also my caps lock was stuck down so it was all caps. It’s fixed. now
@MattAspland
@MattAspland 3 года назад
@@Bentley0312. Cool okay, no worries
@Bentley0312.
@Bentley0312. 3 года назад
@@MattAspland i found the problem, I accidentally clicked game mode
@MattAspland
@MattAspland 3 года назад
@@Bentley0312. Ah okay great, nice work!
Далее
Sprinting And Stamina - Unreal Engine 5 Tutorial
17:00
I Made a Game about Shrek, it will DESTROY your PC
19:19