Unreal Engine Tutorial – Create a 2D Snake Game [Code + Assets]
freeCodeCamp.org
Views: 47688
Like: 1516
Learn how to create a 2D Snake Game with Unreal Engine in this full tutorial. In this beginner’s course, you will how to create a game with Unreal Engine and Blueprints.
💻 Project assets:
💻 Completed project:
🎥 Course from Awesome Tuts. Check out their YouTube channel:
🔗 Learn more about game development here:
—
Learn to code for free and get a developer job:
Read hundreds of articles on programming:
06.04.2023
Please make a tutorial for godot game engine
Which game engine do you suggest for a beginner?
Could you please create video on construct 3?
Could you please create video on construct 3?
Amazing now i can learn game development
We are doing 2d in unreal engine?
Please make a tutorial on making games for android phones
Perfect
One equal but with Js
Unrelated to unreal engine: please if anyone can explain to me why is that whenever I spend 15 and above minutes in Unity my MacBook over heat?
What can I do to solve this issue?
Come one who use unreal engine plz make a unity video unity is the best
Gaming developing is the next big thing.🔥
سبحان الله ويحمده
سبحان الله العظيم
🇴🇲 💕
like very good game what version unreal user for game
I would like to thank freecodecamp for hosting all of these amazing courses, you guys are awesome!
Thank you so much!!
I remembered create this snake games with c++. I am expecting more to get me excited to learn unreal engine.
This is a tutorial I never imagined… But I love it! Thank you!
Ads on your video
Anyone have any advice for a university student (Economics – can't switch to CompSci) wanting an internship as a back-end software engineer?
Have 2 years left at uni and i've been teaching myself code in my spare time. I can currently work with Java, Python, R, SQL and do not have any relevent work experience. Should I freelance, learn more languages, join hackathons etc.. ? Cheers!
@Awesome Tuts you really make awesome tuts…
Which platform you use to use that Unreal Engine ?
I hope I can use WASD Q/E to navigate into blueprint editor.
Does anyone know why I would be getting the following error: Blueprint Runtime Error: "Accessed None trying to read property CallFunc_Array_Get_Item_10". Blueprint: BP_MainGame Function: Execute Ubergraph BP Main Game Graph: Move Snake Node: SetActorLocation ?
I followed the video exactly (or at least I think I did) but have no idea how to fix this issue. Everything spawns but I cannot move the Snake.
i just ran through this tutorial and i had a question. why am i getting an error for "Attempted to access BPFood via property FoodActorRef, but BPFood_C_0 is pending kill"? I'm unsure what i did wrong here. A little help? Also, i really dig the tutorial!
@Awesome Tuts which version to download of unreal engine , where to download?
unreal_editor.exe has stopped working.
For that grey circle in the middle you would need to hide the BP_MainGame actor in game, can be done from the details panel with the Blueprint selected
so clearly explained every step, nice tutorial
The blackish dot in the centre is the "defaultPawn", which you can see it in the World Outliner in play mode. It is automatically added into the scene because this Snake Game does not use any pawns. An easy way to solve this is to add a pawn, double click the pawn, set "auto possess player" to player 0, and then add it to the scene.
12:08
Reminder for me
how do you make your project only 8mb?
56:16
There is no "Set Is Head"
What i did wrong?
2:25:18
Can someone explain how "Is Head" boolean work. Cant understand how it check if it is head or not and when it change from Fasle to True and backward.
2:29:21
You can add delay before closing gate to improve your snake movement.
It wil be smth like that:
"Input Up/Down/Left/Right"
"Pressed" —> "Open" (open gate just like in tutorial)
"Released" —> "Delay" (function)
"Completed" —> "Close" (close gate)
"get Delay" (variable) —> duration (attach to delay function duration)
Now when u press button snake wil definetly do what you want))
Sometimes food spawn behind snake body
how did he make the gameplay in 5:30
1080p please….
Has anyone found a solution to completely rid the input delay?
Anyone know where I can download this version of Unreal Engine? Or have a link?
Can someone help me, the snake doesn’t destroy the food and doesn’t add score when it hits it.
Heya
I have done exactly and double checked that it was just as you had it in the video but I have two problems. The grey square sprite is smaller than the brick border so the border is not actually touching the sprite. It looks like a box within a border.
2. After giving the snake movement I can no longer see the snake head.
What do I do to fix?
Hi
How to change this game 'key' controls to be 'touch' controls ??
Got thsi error while compiling and saving "Kill Snake" 1:06:20 :-
the property associated with paper flipbook could not be found in '/game/blueprints/bp_maingame.bp_maingame_c'
if anyone could help.
Is this intended for someone familiar with the topic? This is titled "beginner" and should have included steps for installing Unreal Editor, plus highlighting some prerequisites.
I already did this course twice – however I do not receive any keyboard events. The game runs but it neither accept the arrow keys nor the 'R' key. Any ideas about that?
Your video really helps me to dive into the engine. It's always hard to start something brand new (even if somebody have 2 years of C++ coding). Blueprints are something unusual for me.
got few issues, but… yeep, thx man
Cool