Page 1 of 1

Drawing Multiple Shapes

Posted: Wed Mar 28, 2018 4:35 am
by Honolulua
I have a problem when trying to draw multiple shapes. I read these wiki posts https://love2d.org/wiki/Tutorial:Drawing_Order and https://love2d.org/wiki/Skip_list:Drawing_Order.

Objects appear bunched up ontop of one another. I did not exactly get any of the posts at the wiki, I could not find much of a pre-existing forum post either. I am new to Lua/Love2D and am just playing around with some things, hoping to make a platformer.
ground.lua
(362 Bytes) Downloaded 174 times
main.lua
(494 Bytes) Downloaded 167 times
player.lua
(1010 Bytes) Downloaded 138 times

Re: Drawing Multiple Shapes

Posted: Wed Mar 28, 2018 7:02 pm
by hanna
yr variables are global.

Re: Drawing Multiple Shapes

Posted: Wed Mar 28, 2018 8:19 pm
by Honolulua
Thank you, hanna!