
Create A 2.5D Platformer Game With Unreal Engine (Tutorial)
video description
Date: 2022-03-14
Related videos
Comments and reviews: 10
Jacopo
For those who are wondering at 1:05:00 -why does sign stabilize the ball-. Just put a breakpoint (press F9) on the Launch Character node and hover with the mouse over the input of the Sign node to see what it looks like. The value I saw for the first hit was -75 (which is the distance between the location of the hit and the center of the ball, aka the radius). The difference between -with sign- and -without sign- is just that in the first case you're always adding the same launch velocity to the character (i.e. a vector), while in the second case the X component depends on the distance between the center of the ball and the hit position. In this game there is no difference since the ball is spherical and every hit will always be at the same distance, but it may not always be the case. So, if you multiply by a value like -12- instead of -800- after sign and don't normalize the vector, the jump would work roughly the same, while in other cases (say you are playing as a car, or a spaceship, or another irregular form) you will want to take the direction of the hit in a normalized form in order to consistently apply the same hit.
Another way to see this is: you take the -hit vector- composed like this: and -normalize- it to get a vector that is either or .
reply
For those who are wondering at 1:05:00 -why does sign stabilize the ball-. Just put a breakpoint (press F9) on the Launch Character node and hover with the mouse over the input of the Sign node to see what it looks like. The value I saw for the first hit was -75 (which is the distance between the location of the hit and the center of the ball, aka the radius). The difference between -with sign- and -without sign- is just that in the first case you're always adding the same launch velocity to the character (i.e. a vector), while in the second case the X component depends on the distance between the center of the ball and the hit position. In this game there is no difference since the ball is spherical and every hit will always be at the same distance, but it may not always be the case. So, if you multiply by a value like -12- instead of -800- after sign and don't normalize the vector, the jump would work roughly the same, while in other cases (say you are playing as a car, or a spaceship, or another irregular form) you will want to take the direction of the hit in a normalized form in order to consistently apply the same hit.
Another way to see this is: you take the -hit vector- composed like this: and -normalize- it to get a vector that is either or .
reply
Collie
I found four problems / bugs
1. The materials are broken (I had to set the textures for the ball in the nodes manually looking at your pasued video) and I cannot for some reason set the materials for the particles (you had them already loaded) its just a green square at the material section of the particle blueprint but doesnt let me change to any material [EDIT: The materials for particles can be easily changed by nodes :) Idk why they dont work in the menu]
2. The cubes spin around even though we set the rotation constraints on it
3. If you constantly press 'E' while on the top of the elevator it will infinitely go up (moves very little every time you press E)
4. In the -OnEndOverlap- event we are disabling the input on -E- but what if the player is still holding the key? The beam still works and the cube can be pulled from any distance! The simplest solution for me was to add the -CloseGate- custom event to the end of the -OnEndOverlap- node
Thanks in advance for any replies !! :)
If anybody even reads this 3 months after the release of this video...
reply
I found four problems / bugs
1. The materials are broken (I had to set the textures for the ball in the nodes manually looking at your pasued video) and I cannot for some reason set the materials for the particles (you had them already loaded) its just a green square at the material section of the particle blueprint but doesnt let me change to any material [EDIT: The materials for particles can be easily changed by nodes :) Idk why they dont work in the menu]
2. The cubes spin around even though we set the rotation constraints on it
3. If you constantly press 'E' while on the top of the elevator it will infinitely go up (moves very little every time you press E)
4. In the -OnEndOverlap- event we are disabling the input on -E- but what if the player is still holding the key? The beam still works and the cube can be pulled from any distance! The simplest solution for me was to add the -CloseGate- custom event to the end of the -OnEndOverlap- node
Thanks in advance for any replies !! :)
If anybody even reads this 3 months after the release of this video...
reply
Kevin99
Ok so, you created a mesh with a ball material and then in the code you wrote a blueprint that change the color of the material which is the entire ball mesh, how did you make glow that specific part of that material?? And also in 35:50 why did you picked the get actor forward and multiplied with get MoveRight? What is the connection?
reply
Ok so, you created a mesh with a ball material and then in the code you wrote a blueprint that change the color of the material which is the entire ball mesh, how did you make glow that specific part of that material?? And also in 35:50 why did you picked the get actor forward and multiplied with get MoveRight? What is the connection?
reply
Giampiero
i am try to devolope this project but there are few problem, the block are moving in Z axis and if i try to jump on they move my camera out of the game , and when you roll the block also the box collider is rolling so does mean they change the interacting point, anyone have a solution?
reply
i am try to devolope this project but there are few problem, the block are moving in Z axis and if i try to jump on they move my camera out of the game , and when you roll the block also the box collider is rolling so does mean they change the interacting point, anyone have a solution?
reply
AMIR
HOW CAN I OPTIMIZE 2.5D LONG LEVELS IN UNREAL ENGINE GAMES LIKE LITTLE NIGHTMARE/INSIDE
I know about level streaming but still no proper tutorial on YouTube or documentation -
If there exist other methods or turorial plz provide links , i will be very great full
reply
HOW CAN I OPTIMIZE 2.5D LONG LEVELS IN UNREAL ENGINE GAMES LIKE LITTLE NIGHTMARE/INSIDE
I know about level streaming but still no proper tutorial on YouTube or documentation -
If there exist other methods or turorial plz provide links , i will be very great full
reply
Dim
Guys, if you have problems compiling the material (most likely you are working in ua5), use the mask node(r,g,b,a) at the moment when the node Lerp(time -> divide->sine -> lerp) goes to if(a==b). I had to spend a lot of time to fix this :D
reply
Guys, if you have problems compiling the material (most likely you are working in ua5), use the mask node(r,g,b,a) at the moment when the node Lerp(time -> divide->sine -> lerp) goes to if(a==b). I had to spend a lot of time to fix this :D
reply
Almark
I don't think we have worked enough with the great potential of Unreal engine for 2D games. There is just so much you can do, and even if it's overkill, that's fine, use what it gives you and make a great game.
reply
I don't think we have worked enough with the great potential of Unreal engine for 2D games. There is just so much you can do, and even if it's overkill, that's fine, use what it gives you and make a great game.
reply
-sim
I did everything as you did but when I overlap with lazer its just giving damage when entering the collision and quiting collision its not permamently how can I do that I did everything on event tick as you
reply
I did everything as you did but when I overlap with lazer its just giving damage when entering the collision and quiting collision its not permamently how can I do that I did everything on event tick as you
reply
Ariel
1:40:00 my ball can enter to the laser and it's detected but on the next frame it doesn't do anything, i do not know what's happening, it's like the bp_laser haven't the tick event activated but it is
reply
1:40:00 my ball can enter to the laser and it's detected but on the next frame it doesn't do anything, i do not know what's happening, it's like the bp_laser haven't the tick event activated but it is
reply
itech
Starting to get into game development. Thank so much for your free content. Who needs expensive schools if one has such an awesome community. greetings from austria
reply
Starting to get into game development. Thank so much for your free content. Who needs expensive schools if one has such an awesome community. greetings from austria
reply
Add a review, comment
Other channel videos















