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 .
kuzika
Prole
Posts: 16 Joined: Tue Apr 21, 2020 3:58 pm
Post
by kuzika » Thu Nov 19, 2020 3:48 pm
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:
Post
by sphyrth » Thu Nov 19, 2020 7:35 pm
Code: Select all
-- Change This
map:bump_init(world)
-- To This
map:box2d_init(world)
zorg
Party member
Posts: 3468 Joined: Thu Dec 13, 2012 2:55 pm
Location: Absurdistan, Hungary
Contact:
Post
by zorg » Fri Nov 20, 2020 12:18 am
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 True 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.
Users browsing this forum: Ahrefs [Bot] and 8 guests