Log In  

Cart #52887 | 2018-05-20 | Code ▽ | Embed ▽ | No License
1

P#52561 2018-05-09 14:45 ( Edited 2018-05-20 21:50)

Hey! I've checked your comment on the 'putinbox' function, it seems like you have defined a draw() function, you're just not calling it. To do that, put this in your main _draw() function :

for b in all(bigbox) do
 b.draw(b)
end

The reasoning for this is while _update() and _draw() are built-in functions and they get called every frame automatically, user-defined functions need to be defined with

function funcname()
 ...
end

and they need to be called by

funcname()

Hope this helped! Cheers!

P#52639 2018-05-12 05:15 ( Edited 2018-05-12 09:15)

[Please log in to post a comment]

Follow Lexaloffle:        
Generated 2022-01-25 08:08:04 | 0.008s | Q:13