 Okay, guys, so Some of you may know that I have been kind of wanting to make a game like Stardew Valley If you don't know what that is or if you've never heard of forager, it's kind of the same thing. Let's go to steam or click Here's forager. I'm I've been really hooked on this game lately. Actually, it's really fun. I Definitely recommend you to play it. It's pretty cheap to $9. Oh same as Stardew Valley But yeah, this is Stardew Valley. So it's kind of like a farming game I've been kind of wanting to make one of those kind of games before and today I went all out on Making collisions and stuff like invisible walls. So I have this terrain and then the red is like the boundaries It's kind of like the walls I guess Let me tell you guys something. It's not easy at all. It was a pain in the ass But I Finally got it So you can see I can't go through the red walls It's a bit Buggy like sometimes I get stuck here But yeah, I finally got it after 10 hours or so, I don't know it was not fun The thing is that it was actually it's very simple So I did something very different Normally you would use here actually let me go to this sample project that I was actually messing with this one so Where's my stuff? Oh, it's taking a while to load. Sorry but what I was using in here was Some special camera that follows the player and It moves around and then the boundaries are just box colliders and the player is just a sprite render and Rigid body and a box collider. Okay, so this is the same thing as what I did in this one However, the issue was actually following the The player like keeping the player in the center because that's just kind of how these games work. So What I was gonna do was have the camera follow the player, but I just couldn't get that to work I tried making my own collision system that didn't work I was very close though, but it was just very buggy and it kept moving me in weird spots But basically I'm actually moving the entire scene Like this and the cool thing I don't know how or why this works, but I put a rigid body on the scene Ignore the box collider the player has a box collider 2d and each of these boundary blocks Has a box collider and for some reason if you run into these box colliders It's just gonna force the scene to stop moving which is really neat And I finally figured out so it's actually way easier than I was expecting it to be This is the code if you're interested Basically, I am just changing the velocity of the the scenes rigid body based on the motion vector Which is calculated based on the the input so the WASD or the arrow keys and which moves it around and Yeah, that's pretty much it and I'm keeping the player Dead center the entire time if I were to get rid of this line right here It's gonna start pushing the player down if I were to keep going up So I needed to lock that player in the center to prevent the scene from pushing my player anyways Hope you guys enjoyed that little a little rant or that little showcase of what I've been working on lately I'll make a tutorial soon. Hopefully and yeah, thank you for watching leave a like see you