Need Help, My Map wont draw!

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
RubyOnRails
Prole
Posts: 1
Joined: Tue Oct 06, 2015 1:01 am

Need Help, My Map wont draw!

Post by RubyOnRails »

Hey can you please help me, I'm coding a video game. The map wont draw for some reason here is all my stuff!
please help me with my problems.

Code: Select all

local AdvTiledLoader = require("AdvTiledLoader.Loader")

function love.load()
	AdvTiledLoader.path = "maps/"
	map = AdvTiledLoader.load("map.tmx")
	map:setDrawRange(0, 0, map.width * map.tileWidth, map.height * map.tileHeight)
    
    
end

function love.draw()
    map:draw()
end

function love.update(dt)
    
end 
Image

Image

Image

Image
User avatar
0x72
Citizen
Posts: 55
Joined: Thu Jun 18, 2015 9:02 am

Re: Need Help, My Map wont draw!

Post by 0x72 »

looks like you use an outdated library with a newer version of love

Feb 16, 2014:
https://github.com/Kadoba/Advanced-Tile ... 083a569469

there is no drawq in 0.9.*

either:
- upgrade the lib
- replace the lib (as it's "no longer being actively developed") and use another one (ATL's readme suggests https://github.com/karai17/Simple-Tiled-Implementation ) <- choose this one if not sure
- or downgrade love ( :( )
User avatar
Karai17
Party member
Posts: 930
Joined: Sun Sep 02, 2012 10:46 pm

Re: Need Help, My Map wont draw!

Post by Karai17 »

As the above poster notes, ATL is no longer in development and no longer works. Your best bet is to switch over to STI for continued support.
STI - An awesome Tiled library
LÖVE3D - A 3D library for LÖVE 0.10+

Dev Blog | GitHub | excessive ❤ moé
Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 6 guests