function attributes in the wrong order?
Posted: Mon Jul 21, 2014 12:01 am
Im getting some trouble debugging this, for some weird reason when I call my function the attibutes come into the function in the wrong order
im calling the function clases.manzana:create(love.mouse.getX,love.mouse.getY, sometable)
and if I print those values inside the function, the first attribute is the table, the second is the x position and the third is the Y position.
[screenshot here]
http://postimg.org/image/59qlmf387/full/
Im really confused, I tried changing the names of the variables to see if it was some scope issue or something, but it didnt work :/
im calling the function clases.manzana:create(love.mouse.getX,love.mouse.getY, sometable)
and if I print those values inside the function, the first attribute is the table, the second is the x position and the third is the Y position.
[screenshot here]
http://postimg.org/image/59qlmf387/full/
Im really confused, I tried changing the names of the variables to see if it was some scope issue or something, but it didnt work :/