Changing a BGO's Size

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.
Moderator: Moderators

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

Post #1by Sambo » 23 Dec 2015, 2:20

I tried to change a BGO's size so it would be bigger using LunaLua, but it doesn't really work. It only changes the physical size, not the image size. Is there a way to change the image size, or is this not yet implemented?

One other thing: For some reason, the Layer:show and Layer:hide functions don't work. It says "attempt to call method "hide", a nil value" when I try to use them. I have the newest version of lunaLua installed.
Image
Current Project:
Image

Kevsoft M
Angry developer
Angry developer
Avatar
Kevsoft M
Angry developer
Angry developer
Age: 19
Reputation: 77
Posts: 376
Joined: 26 Apr 2014
Location: Austria

Post #2by Kevsoft » 23 Dec 2015, 9:00

Yes, changing the size is planned.

About the Layer thing: Be sure that "Layer" is a variable returned by Layer.get or Layer.find.
▬▬▬▬▬▬▬▬▬▬ஜ۩۞۩ஜ▬▬▬▬▬▬▬▬ Signature.start() ▬▬▬▬▬▬▬▬▬▬ஜ۩۞۩ஜ▬▬▬▬▬▬▬
Image
Wohlstand in interview:
Spoiler
Image

▬▬▬▬▬▬▬▬▬▬ஜ۩۞۩ஜ▬▬▬▬▬▬▬▬ Signature.end() ▬▬▬▬▬▬▬▬▬▬ஜ۩۞۩ஜ▬▬▬▬▬▬▬▬

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

Post #3by Sambo » 24 Dec 2015, 2:09

It was a variable returned with one of those functions, but for some reason, it isn't working. But it's not really a big deal. I was going to see if hiding, then showing the layer would force an image reload. That's probably not even how it works, though.
Image
Current Project:
Image


Return to “LunaLua - Extension Framework”

Who is online (over the past 5 minutes)

Users browsing this forum: 1 guest