Easily create levels/maps for Love2D games (with Tiled)

Поділитися
Вставка
  • Опубліковано 18 жов 2024

КОМЕНТАРІ • 106

  • @barrelmandev6446
    @barrelmandev6446 3 роки тому +25

    Thanks for another awesome video! Super useful as well. A lot of tutorials about using Tiled for Love2D are either very old, or very low quality, so seeing this appear in my notifications page made me very excited. I can definitely see you gaining a much bigger following as the Love2D community becomes larger and larger. There’s just no one on youtube right now making videos as good as yours! Keep it up!

    • @Challacade
      @Challacade  3 роки тому

      Thank you! I really appreciate the words of encouragement

  • @chiefplankton8307
    @chiefplankton8307 3 роки тому +6

    Hey Kyle! I finished your course and it helped me out A LOT! The basics are done absolutely right and clean. I'm absolutely loving making stuff up from scratch. Haven't watched this yet but I'm stoked. I just finished my tiny level1- tiled project and this came right on time.

    • @neithancrack7649
      @neithancrack7649 3 роки тому

      Hey do u know a touch screen controls pls I wanna make a Android game I'm just begginer at coding and love2D and in just 12 years old

    • @chiefplankton8307
      @chiefplankton8307 3 роки тому

      @@neithancrack7649 I dont know that. Sorry but. But if I go thru learning that I'll defo contact you

  • @DonQuichotteLiberia
    @DonQuichotteLiberia 3 роки тому +9

    Thank you! This is good stuff, subscribed. I like your style, clear, no-nonsense and to the point.

  • @dabunnisher29
    @dabunnisher29 2 місяці тому +1

    Your video series is REALLY AMAZING. Thank you so much for all that you do.

  • @taunhawk9888
    @taunhawk9888 Рік тому

    This lesson was so cool! That Tiled Map Editor program is really awesome!

  • @eboatwright_
    @eboatwright_ 3 роки тому +2

    This is really cool! I should probably use Tiled, but I'm currently waiting until I settle on a language / framework, and then I'm gonna make my own :)

  • @sxnvmqe
    @sxnvmqe 10 місяців тому

    I actually started learning because of these tutorials!

  • @1cyj764
    @1cyj764 Рік тому

    day 4 of learning lua, and your videos are helping a ton! started off with the classic "hello world" and pongs, now im designing an actual game! the tiles external is vital in helping me with map making. ive already designed my own custom sprite, working on custom animations to replace my web generated sprite

  • @rarestpizza1171
    @rarestpizza1171 Рік тому +1

    I love everything in these tutorials. I haven't had a single issue that you didn't explain very well. I do however have one issue that I am trying to solve with no luck where when I move up or down I get lines that appear for a split second and it happens every couple of seconds but it only happens when I am moving up or down and never left or right. Its strange! Anyways, thank you for everything you do!
    Edit: I used the math.floor on the players position to fix the white lines that shown up.

  • @Mcsjjcollins
    @Mcsjjcollins 3 роки тому +3

    Keep these videos going! I just started using Love2d and you make some of the best tutorials for it! You definitely deserve more subscribers and I’m looking forward to the next videos!

    • @Challacade
      @Challacade  3 роки тому +1

      Thank you!!

    • @Mcsjjcollins
      @Mcsjjcollins 3 роки тому

      @@Challacade You’re welcome! I mean I’m still very new to this, but do you think you could create a video over how to implement in-game cutscenes?

    • @Challacade
      @Challacade  3 роки тому

      @@Mcsjjcollins that's unfortunately pretty dependent on how your game is setup, like with its camera. In the next stream I can show off how I do cutscenes in my current project, that would probably be a solid start. Basically I just change the camera's position to point somewhere else in the level, where something else is going on, and then pan back to where the player is

  • @falcon641
    @falcon641 2 роки тому +9

    Amazing video! Understandable and quick to the point! Just a question: Do you know where I can learn about "map switching"? (Switching from game world map to an npc house map for example). Thanks!

  • @pokeman5796
    @pokeman5796 3 роки тому

    Thank you for the simple and easy video. Looking forward to the camera video! ❤️

  • @synthoelectro
    @synthoelectro 3 роки тому

    There is so much more info on getting started with Love2D. Lately I tried to get started with DOME, which runs over Wren. Neither of these languages I could understand, but I do understand Love2D for some reason.

  • @privateHandle731
    @privateHandle731 Рік тому

    Amazing video! Clear and concise!

  • @cmisskya7384
    @cmisskya7384 5 місяців тому

    This tutorial video is very friendly to beginners like me

  • @Its_ME_Nightmare
    @Its_ME_Nightmare 2 роки тому

    I know how to use lua but I just started using Love2D this video was very helpful thank you so much!

  • @darkfrei2
    @darkfrei2 3 роки тому +1

    And thanks, you are making really good stuff!

  • @Silmerano
    @Silmerano Рік тому

    I struggled with this trying to use my own assets. I had to start over and rewatch the video. tried again with the provided sample assets and it worked. then I started over a third time with my own assets and it finally worked. not sure where I was going wrong at first but I was getting my whole map in the window zoomed out.

  • @franquealencar
    @franquealencar Рік тому

    What good explanation, thank you!

  • @RyanSinghI
    @RyanSinghI 2 роки тому

    this series has been helping me make my game but one problem that i have is that my character stopped moving around when i added the background. only animations

  • @three_
    @three_ 11 місяців тому

    Hey, If you see this please reply because I'm stuck. I've been on and off using Love2D and following your tutorials for about a year maybe 2 now, because whenever I try to make a game I get completely stuck at this part. So let me ask: How do I control the Z-Axis of my textures, when my character walks behind a tree I want the tree to cover them, then when they walk in front of it, they should be above the tree. I've been stuck on this for way too long, please help!

    • @SSJwalker
      @SSJwalker 10 місяців тому

      Did u manage to figure this out? I’m also wondering how to do it.

    • @three_
      @three_ 10 місяців тому

      @@SSJwalker unfortunately never figured it out, I gave up, I always get stuck here and never seem to find any results, its been like 3 years i've been trying to do this, I've asked all around the internet with nothing, please lmk if u ever find a way.

    • @itsaducklin
      @itsaducklin 3 місяці тому

      @@three_ make a new layer for only a specific set of tiles, like trees, in tiled.
      make a new object layer for Y sort positions, and just put points at where you want the transition between drawing above or behind the player.
      In love, you can extract the x and y position of everything in that object layer (I forget how to do this, but challacade does have a tutorial that explains it, the collision tutorial).
      take every single point, and get the closest one to the player. you can do it using simple vector math, just subtract the point's position from the player's and then use the pythagorean theorem to get the distance.
      after getting the closest point, check if it's above the players position. if it is, draw the layer FIRST, then the player LAST.
      otherwise, do it the other way round.
      if you have objects close to each other, as in 1-2 tiles above, then you might want to put them in separate layers.
      tell me if you have issues, you'll probably get them because I've been up for 18 hours and dying inside help merweapt9e8yfdhsi

  • @rijothomas2203
    @rijothomas2203 2 роки тому

    Thanks for this video, learnt a lot, just one doubt, what change we have to do to the for loop if we are using groups in tiled.

  • @Kitarp06
    @Kitarp06 11 місяців тому

    This was the best tutorial

  • @DV_1001
    @DV_1001 6 місяців тому

    I was struggle with this porblem, it said that tileset.png doesnt exist in file download, how can i fix this problem, thanks

  • @Axe9508
    @Axe9508 2 роки тому

    I need help, I made my map but when I load it into love2d, the tiles are really small and I can’t enlarge them, could you help?

  • @doodledud9189
    @doodledud9189 7 місяців тому +1

    for some reason I cant check off embed in map

  • @jakksondd5821
    @jakksondd5821 Рік тому

    When I follow this tutorial, the map file says it needs to have the images, do I need to put every image that the map is using into my text editor?

  • @leer2064
    @leer2064 2 роки тому

    This Video is Just amazing. Thank you so much for helping us to learn how to Code
    I have one question tho
    I am using a tileset thats 8x8 because i Like smaller Textures but when i load it in Love its so small. Is there any way to scale it Up or cant i use it?

    • @theix9393
      @theix9393 Рік тому

      I'm a bit late but yes you can define a scale so everything you draw looks bigger on the screan. Its love.graphics.scale(sx,sy) you can find its documentation online

  • @Indy_Production
    @Indy_Production 2 роки тому

    So when i added in my map into my code it did show up however it was really small which is not what i want. Do you know a way to either upscale the map or zoom the camera inwards?

  • @actravaz
    @actravaz 2 роки тому +6

    I'm confused. even though i followed your instructions it says i need a texture atlas. Any idea what happened?

    • @alairock
      @alairock 2 роки тому +2

      I'm sure this is a little late, maybe this will help someone else, make sure you click the "Embed in map" option when you are creating the new tileset. If you forget to do that, you can click a tiny little icon under that section that says "Embed Tileset" when you hover over it. Don't forget to re-export!

    • @actravaz
      @actravaz 2 роки тому

      @@alairock Thanks!

    • @woofyll9247
      @woofyll9247 2 роки тому

      @@alairock thank you bro I faced the same problem :D

  • @satokoi5618
    @satokoi5618 3 роки тому

    I have made an animated tile in tiled, but it wont draw instead it will stay as a white tile, does sti doesn't have support for animated tiles?

  • @ernestbarrachina5771
    @ernestbarrachina5771 2 роки тому

    Hey,, when I add my tileset and press on the map screen, nothing gets added, I have no idea what is going on..

  • @13Character5
    @13Character5 21 день тому +1

    The titleset link is broken

  • @davyleonardo3914
    @davyleonardo3914 Рік тому

    you are amazing

  • @TheGreatArlei
    @TheGreatArlei 2 роки тому

    I am having a problem using the lua tiles. I am trying to draw a red circle on top of my tiles but using love.graphics.setColor() turns everything red, including my tiles. in my draw function I first draw gameMap:draw(), then set the color of my circle and the draw my circle. What am I doing wrong here?

    • @Challacade
      @Challacade  2 роки тому

      Right after you draw the red circle, put in:
      love.graphics.setColor(1, 1, 1, 1)
      This will change the color for everything else back to normal.

    • @TheGreatArlei
      @TheGreatArlei 2 роки тому

      @@Challacade That worked like a charm. Thank you so much! If you don't mind, I have another quick question: I am trying to print a simple table to the console in VS code but I cant find my print anywhere. What am I doing wrong? what am I missing? Thank you in advance!

  • @rtmesuperthegreat7412
    @rtmesuperthegreat7412 2 роки тому

    Hey, I followed the video with my own tilemap and its giving me an error, something along the lines of it not being able to find the picture.

    • @jpam3294
      @jpam3294 2 роки тому +1

      you cant load the game images/tileset out of game folder (else you get an error) change it changing the image of tileset to the same but in game directory

  • @droidlycodes
    @droidlycodes Рік тому

    Well this doesn't work unless it's outdated I think my version of Tiled is messed up

  • @mrxoxtrew
    @mrxoxtrew 4 місяці тому

    my character is on the default black map and not on my map

  • @HobokerDev
    @HobokerDev 3 роки тому +1

    Yeah. Exporting maps to lua is so convenient it almost feels like cheating :)

  • @ZigmaVR123
    @ZigmaVR123 3 місяці тому

    When I go export as, it exports it as a .tmx file, not a .lua file Pls help

    • @Eddin973
      @Eddin973 2 місяці тому

      After the file name you need to write .lua while your exporting

  • @WhutMcCrimmon
    @WhutMcCrimmon 5 місяців тому

    If I was using a 16x16 tileset, how would I scale it to the default window size?

    • @JustRixed
      @JustRixed День тому

      try using gameMap:draw(0, 0, 2, 2), where "2" is the scale of your map and you can change it freely

  • @marcel5946
    @marcel5946 2 роки тому +3

    Can someone explain me this error happening?
    Error
    libraries/sti/init.lua:99: STI does not support Tile Collections.
    You need to create a Texture Atlas.
    Traceback
    [love "callbacks.lua"]:228: in function 'handler'
    [C]: in function 'assert'
    libraries/sti/init.lua:99: in function 'init'
    libraries/sti/init.lua:48: in function 'sti'
    main.lua:6: in function 'load'
    [love "callbacks.lua"]:136: in function
    [C]: in function 'xpcall'
    [C]: in function 'xpcall'

    • @mazenal-niamat5838
      @mazenal-niamat5838 2 роки тому

      the sovle is when you adding the new tileset sure that choose (the embed in map )

  • @tayyaba8902
    @tayyaba8902 Рік тому +1

    for me it is showing file does not exist

  • @juliekonstanserder6245
    @juliekonstanserder6245 Рік тому

    Hi do you have more tilesets like this one avaliable?

  • @patagain5161
    @patagain5161 2 роки тому

    merci pour ce tuto :)

  • @hoangtongvu9952
    @hoangtongvu9952 2 роки тому

    can we make moving grass in love2d? ( use tiled map)

  • @RyanSinghI
    @RyanSinghI 2 роки тому

    it started moving once i took out the camera. just now.

  • @-GameDev-en5lr
    @-GameDev-en5lr 8 місяців тому

    Does anyone know how to use SVG tiles? When I import them they are converted to PNG

    • @itsaducklin
      @itsaducklin 3 місяці тому

      tilemaps are for pixel art.
      you can make the entire level in a different editor which supports SVG, then download that as another SVG and use it in love, but otherwise, stick to having it convert to png.

  • @Shodan130
    @Shodan130 2 роки тому

    the tile set doesn't show when added.

  • @piago1457
    @piago1457 Рік тому

    how to scale the game Map?

  • @v.jimijelson5945
    @v.jimijelson5945 2 роки тому

    does it work on the mobile version?

  • @stonecarrier2688
    @stonecarrier2688 10 місяців тому

    How big of a map can you make with this tool?

    • @itsaducklin
      @itsaducklin 3 місяці тому +1

      the sky is the limit
      and also your computer's temperature, that too

  • @tinlehoangtrong5051
    @tinlehoangtrong5051 3 роки тому

    How do you know the tileset is 64x64 px?

    • @Challacade
      @Challacade  3 роки тому +1

      In this case I knew because I created it, but to check, you could use an image editor (paint, GIMP) and see how big each tile is, or you could check the width/height of the tileset and divide the number of horizontal tiles

  • @maheralmously2693
    @maheralmously2693 Рік тому

    im getting a librarie error

  • @TrollFace34
    @TrollFace34 4 місяці тому

    i decompiled moonshire lmao

    • @wintesiak
      @wintesiak Місяць тому

      Don't you just extract the exe and then u have all the code and assets?

    • @TrollFace34
      @TrollFace34 Місяць тому

      @@wintesiak yes

  • @wayatschool
    @wayatschool 10 місяців тому

    bruh i dont have admin

  • @Oscar_Alledgedly
    @Oscar_Alledgedly Рік тому

    I absolutlely love your video and I'm currently following it, but now I'm stuck here at the map making process. Whenever I try to open the game it just says:
    Error
    libraries/sti/utils.lua:195: Could not open file ../Assets/Sprout Lands - Sprites - Basic pack/Tilesets/Grass.png. Does not exist.
    Traceback
    [love "callbacks.lua"]:228: in function 'handler'
    [C]: in function 'newImageData'
    libraries/sti/utils.lua:195: in function 'fix_transparent_color'
    libraries/sti/init.lua:102: in function 'init'
    libraries/sti/init.lua:49: in function 'sti'
    main.lua:6: in function 'load'
    [love "callbacks.lua"]:136: in function
    [C]: in function 'xpcall'
    [C]: in function 'xpcall'
    I'd be greatly appreciate it if you can help me

  • @dragondg6412
    @dragondg6412 2 роки тому

    i dont see the link for tiled

    • @Challacade
      @Challacade  2 роки тому

      It's the third link, 'Tiled itch.io page'

  • @neithancrack7649
    @neithancrack7649 3 роки тому

    Pls do basic touch screen controls please I want to make a game in android and I'm just 12 years old wanna learn how to code (I sub

  • @darkfrei2
    @darkfrei2 3 роки тому

    How to build own not-tiled level editor?

    • @Challacade
      @Challacade  3 роки тому

      I don't know what that process would be like. Could you explain what you're trying to do that Tiled wouldn't work?

    • @darkfrei2
      @darkfrei2 3 роки тому

      @@Challacade For example polygons, that have no tiles and off-grid (or the snapping grid is just one pixel size).

    • @Challacade
      @Challacade  3 роки тому +1

      @@darkfrei2 In Tiled, you can go to View -> Snapping to turn off grid snapping, so you can set things at the individual pixel level. Then for polygons, you can draw polygons on the object layer, there's a dedicated tool for that.

  • @maheralmously2693
    @maheralmously2693 Рік тому +7

    no idea why i am though

  • @Glare108
    @Glare108 Рік тому +1

    Love.Load... kinda sus

  • @liljim2835
    @liljim2835 2 роки тому

    WHY DO UR VIDEOS NEVER HELP ME

  • @hegemonYT
    @hegemonYT Рік тому

    There's no tiletset thing on the right hand side of my screen, I've re-installed it, anyone have this issue? I feel like I'm going insane

  • @Ben-rc9br
    @Ben-rc9br 5 днів тому

    ldtk is also pretty good

  • @salsichalivre5401
    @salsichalivre5401 3 роки тому

    Hi, thank you for the effort of offering such great tutorials. Because of them, I will try to make my first game using Löve2D.
    I noticed that the use of tools and libraries is highly necessary since love2d covers the basic set of features only. I would like to know if you will gradually show these tools and libraries or if you think to make a video with a list of names and purpose.
    I am still watching your videos, so what I would like to ask probably is already explained and that is: how, given a map, the collision is implemented? For example, as far as I imagine, if you load the map onto the game as-is, and try to walk where the tree is, the character would just walk over it, right?
    I also would like to ask if the collisions are made with boxes or - for any reason - is it possible to define it more fine grained. For example, from the player animation tutorial, it was 4 x 4 different sprites, right? If the background of each sprite is transparent, is it possible to easily define that the border of the sprite is the collision perimeter?
    Thank you.

    • @Challacade
      @Challacade  3 роки тому +1

      Next video will show stuff on collisions. As far as matching collisions to a sprite, that work has to be done manually. In general, I tend to make a shape that's close enough, since it normally doesn't have to be pixel-perfect

  • @mazenal-niamat5838
    @mazenal-niamat5838 2 роки тому +1

    what is solve
    Error
    libraries/sti/init.lua:99: STI does not support Tile Collections.
    You need to create a Texture Atlas.
    Traceback
    [love "callbacks.lua"]:228: in function 'handler'
    [C]: in function 'assert'
    libraries/sti/init.lua:99: in function 'init'
    libraries/sti/init.lua:48: in function 'sti'
    main.lua:6: in function 'load'
    [love "callbacks.lua"]:136: in function
    [C]: in function 'xpcall'
    [C]: in function 'xpcall

  • @P_SkyeXD
    @P_SkyeXD Рік тому

    pls help me, i did all good but wen i loaded my game at last it said this:
    Error
    libraries/sti/init.lua:94: STI does not support external Tilesets.
    You need to embed all Tilesets.
    Traceback
    [love "callbacks.lua"]:228: in function 'handler'
    [C]: in function 'assert'
    libraries/sti/init.lua:94: in function 'init'
    libraries/sti/init.lua:49: in function 'sti'
    main.lua:6: in function 'load'
    [love "callbacks.lua"]:136: in function
    [C]: in function 'xpcall'
    [C]: in function 'xpcall'

    • @Corredephd
      @Corredephd 9 місяців тому

      Same, did you figure it out?

    • @P_SkyeXD
      @P_SkyeXD 9 місяців тому +1

      ​@@Corredephdyes, i already fixed it a while ago. But I don't know how i did it anymore though... I'm sorry

    • @Corredephd
      @Corredephd 9 місяців тому +2

      @@P_SkyeXD I actually just figured out. A few reasons: 1. Make sure the tilesets you imported in to tiled are images from within the folder where you’re running your game from. 2. Make sure they are all embedded (botttom right of the tiled screen, second button from the left). 3. Make sure the tiled project contains no tilesets that are neither not embedded nor saved somewhere else other than the folder where your game is at. Save enough reexport

  • @arctic8137
    @arctic8137 2 роки тому

    hello please see this i am having trouble ive been learning you code and its super fun. ive completed all the code in this video but when i start up the game it says
    Error
    libraries/sti/init.lua:45: Syntax error: maps/testmap.lua:1: unexpected symbol near '

    • @Challacade
      @Challacade  2 роки тому

      Hi, the '

    • @Trollycat1822
      @Trollycat1822 8 місяців тому

      @@ChallacadeI recreated a map and I am getting 1k errors in the maps code it is just a spam of 11s