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

แชร์
ฝัง
  • เผยแพร่เมื่อ 16 ธ.ค. 2024

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

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

    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 ปีที่แล้ว +7

    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.

  • @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

  • @dabunnisher29
    @dabunnisher29 4 หลายเดือนก่อน +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!

  • @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.

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

    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 ปีที่แล้ว

    I actually started learning because of these tutorials!

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

    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

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

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

  • @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.

  • @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!

  • @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!

  • @cmisskya7384
    @cmisskya7384 7 หลายเดือนก่อน

    This tutorial video is very friendly to beginners like me

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

    Amazing video! Clear and concise!

  • @musilicks
    @musilicks 9 วันที่ผ่านมา

    5:10 commit message on the spec/ folder is interesting

  • @Axe9508
    @Axe9508 2 ปีที่แล้ว +1

    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?

  • @patrickjohnson8719
    @patrickjohnson8719 5 วันที่ผ่านมา

    Nice video but how did you make your tile set?

  • @doodledud9189
    @doodledud9189 9 หลายเดือนก่อน +1

    for some reason I cant check off embed in map

  • @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.

    • @Blawhi2
      @Blawhi2 11 วันที่ผ่านมา

      i have the same problem 😭, i used love.graphics.scale() but in further videos it started becoming not compatible with the camera

  • @actravaz
    @actravaz 3 ปีที่แล้ว +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

  • @DV_1001
    @DV_1001 8 หลายเดือนก่อน

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

  • @C930n
    @C930n 18 วันที่ผ่านมา

    Hey... Idk if ur seeing this, but it says that a certain tile doesn't exist... Can u help?

  • @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.

  • @lucascamelo3079
    @lucascamelo3079 10 วันที่ผ่านมา

    I'm making my own level in lua files. I didn't know tiled could export to .lua. thank you, I'll try yhis out.

  • @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..

  • @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?

  • @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 )

  • @13Character5
    @13Character5 2 หลายเดือนก่อน +1

    The titleset link is broken

  • @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

  • @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?

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

    for me it is showing file does not exist

  • @makeGamesWithGDEVELOP
    @makeGamesWithGDEVELOP 26 วันที่ผ่านมา

    sti doesn't work for the latest version of tiled

  • @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?

  • @WhutMcCrimmon
    @WhutMcCrimmon 7 หลายเดือนก่อน

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

    • @JustRixed
      @JustRixed 2 หลายเดือนก่อน

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

  • @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

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

    What good explanation, thank you!

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

    Hi do you have more tilesets like this one avaliable?

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

    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 ปีที่แล้ว

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

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

      @@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 5 หลายเดือนก่อน

      @@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

  • @mrxoxtrew
    @mrxoxtrew 6 หลายเดือนก่อน

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

  • @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!

  • @ZigmaVR123
    @ZigmaVR123 5 หลายเดือนก่อน

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

    • @Eddin973
      @Eddin973 4 หลายเดือนก่อน

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

  • @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 2 ปีที่แล้ว

      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

  • @Shodan130
    @Shodan130 2 ปีที่แล้ว

    the tile set doesn't show when added.

  • @RyanSinghI
    @RyanSinghI 2 ปีที่แล้ว

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

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

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

  • @hoangtongvu9952
    @hoangtongvu9952 2 ปีที่แล้ว

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

  • @-GameDev-en5lr
    @-GameDev-en5lr 10 หลายเดือนก่อน

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

    • @itsaducklin
      @itsaducklin 5 หลายเดือนก่อน

      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.

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

    how to scale the game Map?

  • @I-Mind1
    @I-Mind1 5 วันที่ผ่านมา

    But I keep getting this error
    Error
    libraries/sti/init.lua:893: attempt to index local 'self' (a nil value)
    Traceback
    [love "callbacks.lua"]:228: in function 'handler'
    libraries/sti/init.lua:893: in function 'draw'
    main.lua:11: in function 'draw'
    [love "callbacks.lua"]:168: in function
    [C]: in function 'xpcall'

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

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

    • @itsaducklin
      @itsaducklin 5 หลายเดือนก่อน +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

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

    This was the best tutorial

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

    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

  • @v.jimijelson5945
    @v.jimijelson5945 2 ปีที่แล้ว

    does it work on the mobile version?

  • @dragondg6412
    @dragondg6412 2 ปีที่แล้ว

    i dont see the link for tiled

    • @Challacade
      @Challacade  2 ปีที่แล้ว

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

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

    im getting a librarie error

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

    bruh i dont have admin

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

    you are amazing

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

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

  • @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.

  • @patagain5161
    @patagain5161 2 ปีที่แล้ว

    merci pour ce tuto :)

  • @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

  • @ackoly_dude4495
    @ackoly_dude4495 หลายเดือนก่อน

    i got this error:
    Error
    libraries/sti/utils.lua:195: Could not open file ../New folder (3)/tileset_sheet.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'

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

    no idea why i am though

  • @TrollFace34
    @TrollFace34 6 หลายเดือนก่อน

    i decompiled moonshire lmao

    • @wintesiak
      @wintesiak 3 หลายเดือนก่อน

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

    • @TrollFace34
      @TrollFace34 3 หลายเดือนก่อน

      @@wintesiak yes

  • @XR55OR
    @XR55OR หลายเดือนก่อน

    i made with xml.

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

    Love.Load... kinda sus

  • @liljim2835
    @liljim2835 2 ปีที่แล้ว

    WHY DO UR VIDEOS NEVER HELP ME

  • @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

  • @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

    • @Eeleemos
      @Eeleemos 2 ปีที่แล้ว

      same for me

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

    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 11 หลายเดือนก่อน

      Same, did you figure it out?

    • @Xx_DemiStar_xX
      @Xx_DemiStar_xX 11 หลายเดือนก่อน +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 11 หลายเดือนก่อน +2

      @@Xx_DemiStar_xX 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

  • @Ben-rc9br
    @Ben-rc9br 2 หลายเดือนก่อน

    ldtk is also pretty good

  • @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 10 หลายเดือนก่อน

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

  • @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