This media is not supported in your browser
VIEW IN TELEGRAM
Dug out an old project today, always wanted to make a puzzle game, not sure if I should continue with it?
https://redd.it/1gyxlqq
@r_Unity3D
https://redd.it/1gyxlqq
@r_Unity3D
Basics of Unity: 2D Platformer Character Controller (i've finally made something a little more useful than raw unity info)
Here the the repo if youre just after the code (its all free to use)
https://github.com/superbird29/2DCharacterController
The Video
https://www.youtube.com/watch?v=ZVDbjhmdWgY
Here is the tutorial video where I walk you through making a 2D platformer character controller. It's pretty long (26 mins) since I do lots of explaining on the what something does, a little explaining on the why and I cover lots of my own pitfalls. It's also heavily chaptered to all skipping of parts you dont need!
Also it is very important to catch any pitfalls so if you see any let me know.
Let me know if you have any questions or concerns?
If you want a shorter one that just walks you through the code and doesnt opine as much on how to actually do it just let me know below!
I am also taking suggestions for future videos
https://redd.it/1gz40o0
@r_Unity3D
Here the the repo if youre just after the code (its all free to use)
https://github.com/superbird29/2DCharacterController
The Video
https://www.youtube.com/watch?v=ZVDbjhmdWgY
Here is the tutorial video where I walk you through making a 2D platformer character controller. It's pretty long (26 mins) since I do lots of explaining on the what something does, a little explaining on the why and I cover lots of my own pitfalls. It's also heavily chaptered to all skipping of parts you dont need!
Also it is very important to catch any pitfalls so if you see any let me know.
Let me know if you have any questions or concerns?
If you want a shorter one that just walks you through the code and doesnt opine as much on how to actually do it just let me know below!
I am also taking suggestions for future videos
https://redd.it/1gz40o0
@r_Unity3D
GitHub
GitHub - superbird29/2DCharacterController
Contribute to superbird29/2DCharacterController development by creating an account on GitHub.
Text is not appearing when i open Unity, is there any way to solve this?
https://redd.it/1gz4vyn
@r_Unity3D
https://redd.it/1gz4vyn
@r_Unity3D
Platformer walljumping when I don't want it to
So I'm kinda new at this and trying to make a simple platformer noscript and I've gotten pretty close to what I want. Issue here is that when the character touches a wall instead of falling it just levitates midair, which allows for it to basically save from every fall by walljumping. Help?
{
//Movement
public float speed;
public float jump;
float moveVelocity;
public Rigidbody2D rb;
bool isGrounded;
void Update()
{
//Grounded?
if (isGrounded == true)
{
//jumping
if (Input.GetKeyDown(KeyCode.Space) || Input.GetKeyDown(KeyCode.UpArrow) || Input.GetKeyDown(KeyCode.Z) || Input.GetKeyDown(KeyCode.W))
{
GetComponent<Rigidbody2D>().velocity = new Vector2(GetComponent<Rigidbody2D>().velocity.x, jump);
}
}
moveVelocity = 0;
//Left Right Movement
if (Input.GetKey(KeyCode.LeftArrow) || Input.GetKey(KeyCode.A))
{
moveVelocity = -speed;
}
if (Input.GetKey(KeyCode.RightArrow) || Input.GetKey(KeyCode.D))
{
moveVelocity = speed;
}
GetComponent<Rigidbody2D>().velocity = new Vector2(moveVelocity, GetComponent<Rigidbody2D>().velocity.y);
}
void OnCollisionEnter2D(Collision2D col)
{
Debug.Log("OnCollisionEnter2D");
isGrounded = true;
}
void OnCollisionExit2D(Collision2D col)
{
Debug.Log("OnCollisionExit2D");
isGrounded = false;
}
}
https://redd.it/1gz7vsi
@r_Unity3D
So I'm kinda new at this and trying to make a simple platformer noscript and I've gotten pretty close to what I want. Issue here is that when the character touches a wall instead of falling it just levitates midair, which allows for it to basically save from every fall by walljumping. Help?
{
//Movement
public float speed;
public float jump;
float moveVelocity;
public Rigidbody2D rb;
bool isGrounded;
void Update()
{
//Grounded?
if (isGrounded == true)
{
//jumping
if (Input.GetKeyDown(KeyCode.Space) || Input.GetKeyDown(KeyCode.UpArrow) || Input.GetKeyDown(KeyCode.Z) || Input.GetKeyDown(KeyCode.W))
{
GetComponent<Rigidbody2D>().velocity = new Vector2(GetComponent<Rigidbody2D>().velocity.x, jump);
}
}
moveVelocity = 0;
//Left Right Movement
if (Input.GetKey(KeyCode.LeftArrow) || Input.GetKey(KeyCode.A))
{
moveVelocity = -speed;
}
if (Input.GetKey(KeyCode.RightArrow) || Input.GetKey(KeyCode.D))
{
moveVelocity = speed;
}
GetComponent<Rigidbody2D>().velocity = new Vector2(moveVelocity, GetComponent<Rigidbody2D>().velocity.y);
}
void OnCollisionEnter2D(Collision2D col)
{
Debug.Log("OnCollisionEnter2D");
isGrounded = true;
}
void OnCollisionExit2D(Collision2D col)
{
Debug.Log("OnCollisionExit2D");
isGrounded = false;
}
}
https://redd.it/1gz7vsi
@r_Unity3D
Reddit
From the Unity2D community on Reddit
Explore this post and more from the Unity2D community
Pipe system
So,, my character is liquid and i was thinking to add a pipe system that the character can go inn and go to different parts of the map, i just don't know how to do it, any ideas?
https://redd.it/1gz5my2
@r_Unity3D
So,, my character is liquid and i was thinking to add a pipe system that the character can go inn and go to different parts of the map, i just don't know how to do it, any ideas?
https://redd.it/1gz5my2
@r_Unity3D
Reddit
From the Unity2D community on Reddit
Explore this post and more from the Unity2D community
Seeking Advice on Creating a Plant Growth Mechanic Similar to Trellis in Unity
https://preview.redd.it/0qopboescz2e1.png?width=415&format=png&auto=webp&s=9f393ef668975b956e12c89de3fff1d0690038c6
This is the Game: Trellis
https://redd.it/1gzb8ht
@r_Unity3D
https://preview.redd.it/0qopboescz2e1.png?width=415&format=png&auto=webp&s=9f393ef668975b956e12c89de3fff1d0690038c6
This is the Game: Trellis
https://redd.it/1gzb8ht
@r_Unity3D
How can I make a background?
Hi, i'm a beginner on Unity and I'm sure how to make a background/map. I've seen a few tutorial about doing a tilemap, but everytime i do this, the tilemap overlap my character, so i'm not sure where i can look to make the character overlap the tilemap/background?
Btw srry for my bad english, its not my first language😅
Thx.
https://redd.it/1gz15pz
@r_Unity3D
Hi, i'm a beginner on Unity and I'm sure how to make a background/map. I've seen a few tutorial about doing a tilemap, but everytime i do this, the tilemap overlap my character, so i'm not sure where i can look to make the character overlap the tilemap/background?
Btw srry for my bad english, its not my first language😅
Thx.
https://redd.it/1gz15pz
@r_Unity3D
Reddit
From the Unity2D community on Reddit
Explore this post and more from the Unity2D community
This media is not supported in your browser
VIEW IN TELEGRAM
I put a great big Akira inspired freight elevator in my game about a quantum cat. It really helps sell the scale of the environments.
https://redd.it/1gzdnl2
@r_Unity3D
https://redd.it/1gzdnl2
@r_Unity3D
What open source projects have you been a part of? Is it still active?
Hello everybody
I've been wanting to contribute to open source projects to sharpen my skills, but haven't found anything yet. wanted to see if you guys have been a part of the game dev open source community.
would love to hear about your experience
https://redd.it/1gzi2pf
@r_Unity3D
Hello everybody
I've been wanting to contribute to open source projects to sharpen my skills, but haven't found anything yet. wanted to see if you guys have been a part of the game dev open source community.
would love to hear about your experience
https://redd.it/1gzi2pf
@r_Unity3D
Reddit
From the Unity2D community on Reddit
Explore this post and more from the Unity2D community