STI and Bump setup issues

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
User avatar
kuzika
Prole
Posts: 16
Joined: Tue Apr 21, 2020 3:58 pm

STI and Bump setup issues

Post by kuzika »

this is my code to initialize bump world by using STI map

Code: Select all

function love.load()
require 'conf';
require 'vars';
bump = require 'maps/bump';
loc= require("maps/lv1")
local sti = require "maps"
world = bump.newWorld(16)
test = love.audio.newSource("audio/03 Towering Chieftain.mp3","static")
map = sti(loc ,{"bump"})
map:bump_init(world)
end
and this is the error that came to me
Error

main.lua:11: attempt to call method 'bump_init' (a nil value)


Traceback

main.lua:11: in function 'load'
[C]: in function 'xpcall'
[C]: in function 'xpcall'
"kuzika" literally means "to burry"
sphyrth
Party member
Posts: 260
Joined: Mon Jul 07, 2014 11:04 am
Contact:

Re: STI and Bump setup issues

Post by sphyrth »

Code: Select all

-- Change This
map:bump_init(world)

-- To This
map:box2d_init(world)
User avatar
zorg
Party member
Posts: 3468
Joined: Thu Dec 13, 2012 2:55 pm
Location: Absurdistan, Hungary
Contact:

Re: STI and Bump setup issues

Post by zorg »

sphyrth wrote: Thu Nov 19, 2020 7:35 pm

Code: Select all

-- Change This
map:bump_init(world)

-- To This
map:box2d_init(world)
I mean, sti does have bump support as well, so that's not really a helpful answer :v
Me and my stuff :3True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 8 guests