Level Design with Tilemaps | 2D Platformer in Unity #5 | 2D Game Dev Tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 13 ม.ค. 2025

ความคิดเห็น • 145

  • @MuddyWolf
    @MuddyWolf  4 ปีที่แล้ว +168

    Are you still enjoying this series?

    • @Xmsnjeje
      @Xmsnjeje 4 ปีที่แล้ว +6

      Yes thx
      Add next level
      Shop etc. Pls New video

    • @ibrahimmehdi1259
      @ibrahimmehdi1259 4 ปีที่แล้ว +4

      yes i love them

    • @rasanu6060
      @rasanu6060 4 ปีที่แล้ว +4

      Yes, I love them, it would be great if you can add a shop for the character, like in exchange of the money "found in the game", you can buy something for your character, or another charater [i hope i didn't spelt wrong, because english isn't my main language].

    • @thejourney4609
      @thejourney4609 4 ปีที่แล้ว +4

      This is the tutorial I have been looking for years for! I highly recommend adding resource links to the assets as following along without them is difficult. Also, not everyone has PhotoShop so I included some free resources people can use.

    • @UgaGeguga
      @UgaGeguga 4 ปีที่แล้ว +3

      YES

  • @DamageXYZ39
    @DamageXYZ39 4 ปีที่แล้ว +15

    I've been watching these videos periodically throughout developing my platformer, and you've explained and taught everything extremely well. Good job!

  • @RetroBreak
    @RetroBreak 4 ปีที่แล้ว +4

    Great set of tutorials you've got here! Really easy to follow, and at a good pace so you don't fill in any unnecessary detail I've been enjoying following along and pausing after each step to make sure I fully understand what's going on before I continue!

    • @MuddyWolf
      @MuddyWolf  4 ปีที่แล้ว +1

      Awesome, thank you! I'm happy you enjoy them! I will be doing many more of these going forward!! :D

  • @RajOnTheStreet
    @RajOnTheStreet 4 ปีที่แล้ว +4

    I am really enjoying the consistent uploads, thank you for all your work. I look forward for more videos!

    • @MuddyWolf
      @MuddyWolf  4 ปีที่แล้ว +3

      Thanks! I'm trying to be more consistent!

  • @peteri.s5398
    @peteri.s5398 4 ปีที่แล้ว +2

    Discovered your channel a couple of days ago and enjoyed your content! great and clear tutorial. very helpful especially to newbies. keep up the good work

  • @Anerisian
    @Anerisian 4 ปีที่แล้ว +7

    You can hold shift to delete also with the with the big square selection. Also you should really use ruletiles for this.

    • @MuddyWolf
      @MuddyWolf  4 ปีที่แล้ว +1

      Thanks for the tips!

  • @Owen221
    @Owen221 4 ปีที่แล้ว +2

    Just became the 600 subscriber!! Congratulations on that!

    • @MuddyWolf
      @MuddyWolf  4 ปีที่แล้ว +1

      Ayyy thanks! Welcome to the pack!

  • @movienerd9362
    @movienerd9362 3 ปีที่แล้ว

    This s a really good tutorial, I have been trying to make a game forever but all the tutorials use premade sprites, tiles (You use premade tiles but I just made my own in photoshop) and barely teach you how to make stuff.

  • @abarofsoap2316
    @abarofsoap2316 4 ปีที่แล้ว +5

    Can you link the tile map your using thanks :)

  • @safwanurrahman5309
    @safwanurrahman5309 3 ปีที่แล้ว +1

    Hey , love your video’s , I’ve been watching them cause I want to learn making games but could you please make a series explaining what all the scripting lines and every word you type mean by examples? Would love it and help a lot of beginners who don’t have any experience like me

  • @expdelphi1486
    @expdelphi1486 3 ปีที่แล้ว

    If you need to get rid of the background for a blank space(A long with lots of other pixel art things) I would recommend Piskel its free and super easy to use. You can just import the image and use the fill bucket to fill with a blank space.

  • @ibrahimmehdi1259
    @ibrahimmehdi1259 4 ปีที่แล้ว +3

    great videos can you plz make touch controlled related videos for unity like the previous video anyway brillaint work

    • @MuddyWolf
      @MuddyWolf  4 ปีที่แล้ว +3

      I will be doing more touch control videos in the future!

  • @AnaFerreira-mq3cn
    @AnaFerreira-mq3cn 4 ปีที่แล้ว +2

    "punch that like button in the face... LIKE A BOOOOOOOOOOOOOOOOOSS"

    • @MuddyWolf
      @MuddyWolf  4 ปีที่แล้ว

      😂😂😂

  • @zidlik6461
    @zidlik6461 4 ปีที่แล้ว +7

    Hey man, awesome tutorial.
    Im having one specific issue, where at some point there is like invisible tile and I can only jump over it or go from the other side. If you know how to solve this problem and will feel free to share it, I´ll be very happy :)

    • @XxxNikGaxxX
      @XxxNikGaxxX 3 ปีที่แล้ว

      have you found a way?

    • @zidlik6461
      @zidlik6461 3 ปีที่แล้ว +1

      @@XxxNikGaxxX Yup, but i havent used Unity for a while so Im not sure if it is right. You need to change Geometry type in Composite collider 2D to Polygons

  • @masone6641
    @masone6641 4 ปีที่แล้ว +2

    Make transition videos please? Like when u move all the way to the right u transition into a new level

  • @Hunt4Glory
    @Hunt4Glory 3 ปีที่แล้ว +3

    can you add a link to the tile maps you got please? thx

  • @harr_m
    @harr_m 3 ปีที่แล้ว +2

    What do you rekon his favourite song is?

  • @alvido97
    @alvido97 4 ปีที่แล้ว

    keep doing this , those videos are very help full for mee thank you!!!!!!!!!

  • @the2ndperson179
    @the2ndperson179 3 ปีที่แล้ว +1

    where can I find the tile map you use because I am having trouble finding my own

  • @dannill6314
    @dannill6314 4 ปีที่แล้ว +1

    Why is that when I go into play mode I can't see what my camera is supposed to see, but if I move it further out, it also changes it's like a scale ratio

  • @Old_SDC
    @Old_SDC 4 ปีที่แล้ว +2

    13:52 this is just a reminder for what I’m at because I’m going to eat my food baiii💛

    • @Miguel-jj3vf
      @Miguel-jj3vf 4 ปีที่แล้ว +1

      you never came back :(

    • @Old_SDC
      @Old_SDC 4 ปีที่แล้ว +2

      @@Miguel-jj3vf I’m sorry I meant to make an update to the comment but I forgot I promise I did come back tho

    • @Miguel-jj3vf
      @Miguel-jj3vf 4 ปีที่แล้ว

      @@Old_SDC lol

    • @Old_SDC
      @Old_SDC 4 ปีที่แล้ว

      @@trv4505 ohh

  • @TheDetective_1960s
    @TheDetective_1960s 4 ปีที่แล้ว +2

    Currently experiencing a problem where after i touch a wall, a small invisible wall will spawn behind me and block my movement. Not sure how and why it happens.

  • @pedro-tw4lb
    @pedro-tw4lb 3 ปีที่แล้ว

    15:18 instead of making a new tilemap you could just make sure the objects don’t have any colliders or anything

  • @tyhgjfcdkdc
    @tyhgjfcdkdc 3 ปีที่แล้ว +1

    Where did u find this tile map?

  • @frvicboi
    @frvicboi 3 ปีที่แล้ว +1

    for some reason my tilemap when I draw it it is super tiny

  • @ChaosBlitz404
    @ChaosBlitz404 3 ปีที่แล้ว

    Nice vid!

  • @finnregan863
    @finnregan863 3 ปีที่แล้ว +2

    Does anyone know how to fix the infinite wall jumps thing? I've been trying to find a solution for hours, but nothing is working. The only thing I can think of is to change the parameters for IsGrounded, but I don't know how to do that.

    • @happytoxicsludge4125
      @happytoxicsludge4125 3 ปีที่แล้ว +2

      change
      Collider2D groundCheck = Physics2D.OverlapCircle(feet.position, 5f, groundLayers);
      to
      Collider2D groundCheck = Physics2D.OverlapCircle(feet.position, 0.25f, groundLayers);

  • @Steppy
    @Steppy 4 ปีที่แล้ว

    hi i am having a problem with the tilepalette. when i look up on google the same palette u have i can never find a png one so i always have to cut out the background in photoshop. then when i import it to unity everything just goes wrong. so do u have a download link for the tile palette pls?

  • @themooselord9848
    @themooselord9848 3 ปีที่แล้ว

    hey, so the tiles when putting them on the map, they are tiny, they arent the size as the squares

  • @JohnAndrews_nz
    @JohnAndrews_nz 3 ปีที่แล้ว +1

    Would be great if you included the sprites you used in these videos.

    • @sebastianr6791
      @sebastianr6791 3 ปีที่แล้ว +4

      opengameart.org/content/generic-platformer-tileset-16x16-background
      thats the tileset its the only one I found

    • @thisnative5149
      @thisnative5149 3 ปีที่แล้ว

      @@sebastianr6791 Thanks dude

  • @jamilsalami2975
    @jamilsalami2975 4 ปีที่แล้ว +3

    please i need help,at a point i wont be able to pass(like theres an invisible wall or something) but i can jump over please help with this glitch

    • @frankaors5223
      @frankaors5223 4 ปีที่แล้ว

      did you fix it

    • @zidlik6461
      @zidlik6461 4 ปีที่แล้ว

      Yes, Im having the same issue like you. If you have any suggestions how to solve it, please let me know :)

    • @zidlik6461
      @zidlik6461 4 ปีที่แล้ว +1

      Ok, so I have solved the problem somehow. If you check on Tillemap Collider 2D "Used by composite". If you arent able to jump after you check this option then use on the "Composite Collider 2D" on "geometry type" polygons istead of outlines. That should work

  • @NadiyaLovely19
    @NadiyaLovely19 3 ปีที่แล้ว +1

    Well I think I know what my future will be :)

  • @linaslasagna3127
    @linaslasagna3127 3 ปีที่แล้ว +2

    im making a map with the tilemap but my player just falls straight through everything

    • @lilcrust3063
      @lilcrust3063 3 ปีที่แล้ว

      does it have rigid body 2d and tilemap collider 2d

  • @wizardman79
    @wizardman79 3 ปีที่แล้ว

    how do i make that the tileset.png wouldnt have that blue background

  • @eeshbhalla196
    @eeshbhalla196 3 ปีที่แล้ว

    how do you drag and drop the tiles in?

  • @mayaralbatal
    @mayaralbatal 4 ปีที่แล้ว +1

    why does my character rotation resize to x,0 y,-90 z,0 or something like that when I hit the corner of an edge please help

    • @stefanhuma3328
      @stefanhuma3328 4 ปีที่แล้ว +4

      Hello I think I know the solution : Go to your Player --> Rigidbody 2D ---> Constraints and check Freeze Rotation Z ! Hope it worked XD

    • @yessir_724
      @yessir_724 3 ปีที่แล้ว

      @@stefanhuma3328 saved my life

  • @platon3214
    @platon3214 3 ปีที่แล้ว

    Thanks so much for this

  • @apple_milk
    @apple_milk 3 ปีที่แล้ว

    how do i turn off the gridlines

  • @Jono1982
    @Jono1982 4 ปีที่แล้ว

    Do you know why when I set Pixel Per Unit to 32 it draws my tiles as 58x58?

  • @frankaors5223
    @frankaors5223 4 ปีที่แล้ว +1

    does anyone know why when i click "play" my character resizes to x1 y1 z1? it makes my character giant and it cannot jump and slide through tiles

    • @loganbutler7287
      @loganbutler7287 4 ปีที่แล้ว +1

      Could be that in your code that makes your character face where they're moving you copied what he wrote in the previous video word for word. In the line that says transform.localScale = new Vector3(1f, 1f, 1f) you need to replace those 1s with your x, y, and z scaling values respectively. same with the -1f except youd replace with minus whatever your x value is

    • @mayaralbatal
      @mayaralbatal 4 ปีที่แล้ว +1

      me too

  • @soirema
    @soirema ปีที่แล้ว

    agfhgh I dont have tile palette in 2D section...

  • @raidoukuzunoha9874
    @raidoukuzunoha9874 4 ปีที่แล้ว

    Im sorry for asking, but why my character keep getting stuck on the platforms.It works ok on the 'Ground' but after it collided with the objects, it started to get stuck between platforms.
    Do i have to add composite collider 2d to the objects and set it to outlines like the platforms?

    • @lorbot4477
      @lorbot4477 4 ปีที่แล้ว

      If you already added a composite collider 2d you need to check "Used By Composite" in the Tilemap Collider 2d

    • @lorbot4477
      @lorbot4477 4 ปีที่แล้ว

      th-cam.com/video/eJik78bWSg0/w-d-xo.html
      I used this tutorial to solve the problem

    • @raidoukuzunoha9874
      @raidoukuzunoha9874 4 ปีที่แล้ว

      @@lorbot4477 Yup, that seems the case. I juz tick the used by composite in the platform's composite collider and the player now moves smoothly. Thx

  • @sebastianr6791
    @sebastianr6791 3 ปีที่แล้ว

    just saving my spot 18:00

  • @aronzekir9678
    @aronzekir9678 4 ปีที่แล้ว +1

    Hey man I love these tutorials but the tileset isn't a png for me can anyone please help me with this?

    • @harrybeest
      @harrybeest 4 ปีที่แล้ว +2

      in your files, go to the image and change the . at the end to say .png instead of whatever it says atm

  • @LunyaTheGay
    @LunyaTheGay 3 ปีที่แล้ว

    can we have the tilemap

  • @promadness875
    @promadness875 4 ปีที่แล้ว +2

    My player just keeps falling when i move while playing. Pls help

    • @roxxane019
      @roxxane019 4 ปีที่แล้ว

      Did you make sure your ground is tagged and in layer 'Ground'?

    • @promadness875
      @promadness875 4 ปีที่แล้ว

      @@roxxane019 ya

    • @HyremStories
      @HyremStories 4 ปีที่แล้ว +1

      @@promadness875 Little late here, does it have Box Collider 2D attached to it?

  • @slinnyboi
    @slinnyboi 4 ปีที่แล้ว +1

    How can I fix this: When my Player hits a platform on the side, he flips around. So i just wanna freeze the rotation on the x axis. (if you read this please continue with this series)

    • @mattrd3068
      @mattrd3068 4 ปีที่แล้ว +1

      If you're still having this problem go to your player and then go to the Rigid Body 2D component and under constraints then freeze rotation

    • @hiiambarney4489
      @hiiambarney4489 4 ปีที่แล้ว

      Jeah Rigidbody 2d - > constraints - > freeze rotation on the Z Axis

    • @slinnyboi
      @slinnyboi 4 ปีที่แล้ว

      @@mattrd3068 Thanks

    • @slinnyboi
      @slinnyboi 4 ปีที่แล้ว

      @@hiiambarney4489 Danke

    • @itzblobbygaming8989
      @itzblobbygaming8989 4 ปีที่แล้ว

      @@mattrd3068 thank

  • @sandyra91
    @sandyra91 4 ปีที่แล้ว +2

    SHARE. THE. ASSETS. FOR. EACH. VIDEO.

  • @bluedroid7757
    @bluedroid7757 3 ปีที่แล้ว

    Link for tilemap?

  • @RXGLine
    @RXGLine ปีที่แล้ว

    can i have the psd file

  • @yourfellowgamer487
    @yourfellowgamer487 4 ปีที่แล้ว +2

    my hands hurt from doing the custom outline

  • @JacobZAMV
    @JacobZAMV 3 ปีที่แล้ว

    Could someone tell me why my platform is falling down ?

    • @JacobZAMV
      @JacobZAMV 3 ปีที่แล้ว

      ohh nvm. I had to change Rigidbody 2D "Body Type" to "Static"
      (If someone has the same problem here's the solution :D)

  • @Huliuspulius
    @Huliuspulius 3 ปีที่แล้ว

    Just a reminder for me 17:08

  • @IkaikaSlashyFace
    @IkaikaSlashyFace 3 ปีที่แล้ว

    I feel bad for Aaron

  • @eskimo8383
    @eskimo8383 3 ปีที่แล้ว +1

    I don't see a physics material 2d, all I see is a physics material
    EDIT: you have to go to create>2D and then you will see it

  • @yourfellowgamer487
    @yourfellowgamer487 4 ปีที่แล้ว

    Not last

  • @AngryExpress
    @AngryExpress 4 ปีที่แล้ว

    *me who has to do the template by hand due to not finding a good map*

  • @yourfellowgamer487
    @yourfellowgamer487 4 ปีที่แล้ว +2

    who else skipped the animation tutorial?

    • @TomTTFB
      @TomTTFB 4 ปีที่แล้ว +2

      Me because my character is a bean

    • @yourfellowgamer487
      @yourfellowgamer487 4 ปีที่แล้ว +1

      @@TomTTFB SAMEEE!!! do u watch dani?

    • @TomTTFB
      @TomTTFB 4 ปีที่แล้ว

      @@yourfellowgamer487 yes

    • @yourfellowgamer487
      @yourfellowgamer487 4 ปีที่แล้ว

      @@TomTTFB epic

    • @Omar-zh7zk
      @Omar-zh7zk 3 ปีที่แล้ว

      @@yourfellowgamer487 lol me too

  • @jargoon9258
    @jargoon9258 4 ปีที่แล้ว +1

    Is there a way to implement code so that you won't be able to jump up walls? For context, here's my PlayerMovement code at the moment.
    using System.Collections;
    using System.Collections.Generic;
    using UnityEngine;
    public class PlayerMovement : MonoBehaviour {
    public float movementSpeed;
    public Rigidbody2D rb;
    public Animator anim;
    public float jumpForce;
    public Transform feet;
    public LayerMask groundLayers;
    float mx;
    private void Update() {
    mx = Input.GetAxisRaw("Horizontal");
    if (Input.GetButtonDown("Jump") && IsGrounded()) {
    Jump();
    }
    if (Mathf.Abs(mx) > 0.05) {
    anim.SetBool("isRunning", true);
    } else {
    anim.SetBool("isRunning", false);
    }
    if (mx > 0) {
    transform.localScale = new Vector3(1.5f, 1.5f, 1.5f);
    } else if (mx < 0f) {
    transform.localScale = new Vector3(-1.5f, 1.5f, 1.5f);
    }
    anim.SetBool("isGrounded", IsGrounded());
    }
    private void FixedUpdate() {
    Vector2 movement = new Vector2(mx * movementSpeed, rb.velocity.y);
    rb.velocity = movement;
    }
    void Jump() {
    Vector2 movement = new Vector2(rb.velocity.x, jumpForce);
    rb.velocity = movement;
    }
    public bool IsGrounded() {
    Collider2D groundCheck = Physics2D.OverlapCircle(feet.position, 0.5f, groundLayers);
    if (groundCheck != null) {
    return true;
    }
    return false;
    anim.SetBool("isGrounded", IsGrounded());
    }
    }

    • @rasanu6060
      @rasanu6060 4 ปีที่แล้ว +1

      13:20 - Add a physics material 2d, name it Slippery, open it and do friction to 2 and add it to rigidbody2d to the material slot. Hope it helped :)

  • @jappster6068
    @jappster6068 3 ปีที่แล้ว

    i can infintely jump

    • @apple_milk
      @apple_milk 3 ปีที่แล้ว

      rewatch the jumping tutorials