Simple One Way Platforms in Under 5 Mins - Unity 2D Tutorial

  Рет қаралды 2,292

Topside Studios

Topside Studios

Күн бұрын

Пікірлер: 7
@Rick426_
@Rick426_ 2 жыл бұрын
that really helped a lot. i always got stuck at the edges. thx
@tauheedgamedev2388
@tauheedgamedev2388 4 жыл бұрын
Great Tutorial, Iv been more focused on strategy games so genuinely didn't know about platform effectors. 👍
@paulbuckley685
@paulbuckley685 4 жыл бұрын
Excellent tutorial 👌
@R1zzio
@R1zzio 3 жыл бұрын
Can you make a tutorial how to make enemies not fall from it? it would really help
@topsidestudios5947
@topsidestudios5947 3 жыл бұрын
Code for those not wanting to type it out : public class OneWayPlatform : MonoBehaviour { public bool coll; public PlatformEffector2D platform; void Update() { if(coll && Input.GetKeyDown(KeyCode.S)) { platform.surfaceArc = 0f; StartCoroutine(Wait()); } } private void OnCollisionEnter2D(Collision2D collision) { coll = true; } private void OnCollisionExit2D(Collision2D collision) { coll = false; } IEnumerator Wait() { yield return new WaitForSeconds(0.3f); platform.surfaceArc = 180f; } }
@timofeysamokhin9918
@timofeysamokhin9918 3 жыл бұрын
There are many things you leave out. if there is an enemy on the platform, or if the player does not move away, he will be pushed upward. Dislike
@topsidestudios5947
@topsidestudios5947 3 жыл бұрын
This was just suppose to be a quick beginners video to get a basic one way platform system working. The code can be expanded to cover the problems you stated but I wanted to keep the video short 👍
How To Make 2D Ladders In Unity
4:25
bendux
Рет қаралды 42 М.
How I Made a 3D Platformer in 2D Game Engine
21:23
ggenije
Рет қаралды 601 М.
Andro, ELMAN, TONI, MONA - Зари (Official Music Video)
2:50
RAAVA MUSIC
Рет қаралды 2 МЛН
Their Boat Engine Fell Off
0:13
Newsflare
Рет қаралды 15 МЛН
How I made an Excellent Platformer
8:25
GoldenEvolution
Рет қаралды 302 М.
Making a Game About Weak Points
21:27
Emis
Рет қаралды 1 МЛН
A new way to generate worlds (stitched WFC)
10:51
Watt
Рет қаралды 558 М.
Best Games from the Brackeys Game Jam 2024.2!
13:53
Brackeys
Рет қаралды 188 М.
Aseprite Animation Tutorial (Pixel Art)
11:13
Saultoons
Рет қаралды 273 М.
AI Is Making You An Illiterate Programmer
27:22
ThePrimeTime
Рет қаралды 208 М.
How to make a Video Game - Godot Beginner Tutorial
1:17:12
Brackeys
Рет қаралды 2,8 МЛН
Creating Rope Objects with Physics | Unity Tutorial
10:36
Sasquatch B Studios
Рет қаралды 32 М.
Andro, ELMAN, TONI, MONA - Зари (Official Music Video)
2:50
RAAVA MUSIC
Рет қаралды 2 МЛН