Layer:move()?

Description: Archive discussion
============================
Original description:
Official subforum for LunaLua - an extension framework for SMBX Engine Version 1.3 (which a core of SMBX 2.0). Share your creations that require the use of LunaLUA. You may also share info/tutorials on how to use LunaLUA.

Sambo M
Topic author, Count
Count
Avatar
Sambo M
Topic author, Count
Count
Age: 26
Reputation: 15
Posts: 264
Joined: 27 Jun 2014

Post #1by Sambo » 12 Jul 2016, 2:14

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)?
Image
Current Project:
Image

Kevsoft M
Angry developer
Angry developer
Avatar
Kevsoft M
Angry developer
Angry developer
Age: 25
Reputation: 93
Posts: 379
Joined: 26 Apr 2014
Location: Austria
Website

Post #2by Kevsoft » 14 Jul 2016, 7:57

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
▬▬▬▬▬▬▬▬▬▬ஜ۩۞۩ஜ▬▬▬▬▬▬▬▬ Signature.start() ▬▬▬▬▬▬▬▬▬▬ஜ۩۞۩ஜ▬▬▬▬▬▬▬
▬▬▬▬▬▬▬▬▬▬ஜ۩۞۩ஜ▬▬▬▬▬▬▬▬ Signature.end() ▬▬▬▬▬▬▬▬▬▬ஜ۩۞۩ஜ▬▬▬▬▬▬▬▬


Return to “LunaLua - Extension Framework”

Who is online (over the past 5 minutes)

Users browsing this forum: 3 guests