Log In  
Log In  

Cart [#52887#] | 2018-05-20 | No License | Embed
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]

X
About | Contact | Updates | Terms of Use
Follow Lexaloffle:        
Generated 2019-01-21 18:12 | 0.016s | 4194k | Q:20