I'm still very new to LOVE 2D so I apologize if these are really stupid questions
I've made a test image show up in game and move around, but that's pretty much all I've done so far. I decided I would just test everything out once to see how it works before I dive headfirst into programming a game with tools I don't understand, so I made a little test map in Tiled. The only problem is that whenever I load the game, it only shows a black screen.
Does anyone know what the problem might be? I've only been a member of these forums for a few days so I can add any information I may have forgotten. Any help would be greatly appreciated!
Tilemap doesn't load
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
- Jasoco
- Inner party member
- Posts: 3726
- Joined: Mon Jun 22, 2009 9:35 am
- Location: Pennsylvania, USA
- Contact:
Re: Tilemap doesn't load
.love file please!
-
- Prole
- Posts: 3
- Joined: Sun Jun 29, 2014 8:03 pm
Re: Tilemap doesn't load
Oh, right, sorry, here it is!
- Attachments
-
- TEST.love
- (73 KiB) Downloaded 118 times
Re: Tilemap doesn't load
Hi!
You need to use love callbacks
https://www.love2d.org/wiki/love
Maybe you should check out some löve tutorials? like https://www.youtube.com/playlist?list=P ... re=mh_lolz
I also recommend STI instead of ATL
http://love2d.org/forums/viewtopic.php?f=5&t=76983
You need to use love callbacks
https://www.love2d.org/wiki/love
Code: Select all
function love.load() --This function is called exactly once at the beginning of the game.
end
--**************************************************************************
function love.update(dt) --Callback function used to update the state of the game every frame.
end
--****************************************************************************
function love.draw() --Callback function used to draw on the screen every frame.
end
I also recommend STI instead of ATL
http://love2d.org/forums/viewtopic.php?f=5&t=76983
-
- Prole
- Posts: 3
- Joined: Sun Jun 29, 2014 8:03 pm
Re: Tilemap doesn't load
I tried using STI instead, however I am also dumb and both the tutorial and the documentation for STI weren't very helpful for me as I have no idea what I'm doing and I'm pretty sure most people expect me to have some idea of how this works, anyways I'm pretty sure the main problem I'm having is with syntax and the way I'm typing things, but in the getting started page for STI the example had "map" in front of pretty much everything but it isn't really recognized as an actual thing when I try it
I'm pretty sure this means I didn't successfully get STI to actually work or get loaded into LOVE or something like that but I honestly have no idea what I'm doing so I can't really figure it out, sorry
Oh also here's the .love file
I'm pretty sure this means I didn't successfully get STI to actually work or get loaded into LOVE or something like that but I honestly have no idea what I'm doing so I can't really figure it out, sorry
Oh also here's the .love file
- Attachments
-
- TEST.love
- (1.1 MiB) Downloaded 118 times
Who is online
Users browsing this forum: Bing [Bot] and 4 guests