Page 1 of 1

Layer:move()?

Posted: 12 Jul 2016, 2:14
by Sambo
There should be a function Layer:move(speedX, speedY). I know it is possible to change the layer's movement by changing its fields, but for me, it would be easier to tell what's going on if I could set the speed in this way.

Also, I just have a question about the Lua language in general: If "move" is a function, is a:move(b,c) equivalent to move(a,b,c)?

Posted: 14 Jul 2016, 7:57
by Kevsoft
Sambo wrote:There should be a function Layer:move(speedX, speedY). I know it is possible to change the layer's movement by changing its fields, but for me, it would be easier to tell what's going on if I could set the speed in this way.
The Wishlist is the way to go!
Also, I just have a question about the Lua language in general: If "move" is a function, is a:move(b,c) equivalent to move(a,b,c)?
Yes