from 2 days i was working on a love2d project for making a game
and i did the player and i added animations to it but when i tryied to add the map to love2d with sti by the following code :
1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9
function love.load() sti = require 'lib/sti' map = sti('maps/map.lua') function love.draw() map:draw()
after i saved this code and run it i got this error :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Error lib/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' lib/sti/init.lua:94: in function 'init' lib/sti/init.lua:49: in function 'sti' main.lua:6: in function 'load' [love "callbacks.lua"]:136: in function <[love "callbacks.lua"]:135> [C]: in function 'xpcall' [C]: in function 'xpcall'
note : all of the codes i put arent compelete i just put the code for the map load code
note : i made the map by tiled and after i finished it i exported the first map file as .tmx and after it i exported it as .lua file then i included the .lua file into my text editor by the code ^^^^
i just want help for this problem