LunaLua Offical Thread - SMBX Usermod Framework

This is the place for discussion and support for LunaLua and related modifications and libraries.

Shall I steam some LunaLua live development?

Yes
172
92%
No
15
8%
 
Total votes: 187
User avatar
Hoeloe
Volcano Lotus
Volcano Lotus
Posts: 568
Joined: Sat Oct 03, 2015 6:18 pm
Current Project: A2XT Episode 2

Re: LunaLua Offical Thread - SMBX Usermod Framework

Postby Hoeloe » Fri Jan 06, 2017 4:10 pm

MosaicMario wrote:Actually, i think i was just doing something wrong, it's working correctly now. but i want to know how to do this with regular coins
and for the value to be carried over to other stages.


If you read the wiki page just one line further, the code to do it for regular coins is literally right there.

As for getting it to save between levels, you need to use either the onExitLevel event or the coins:onCollect event. These will allow you to save the currency value either when you exit the level, or when you collect a coin.

User avatar
Mosaic
Ludwig von Koopa
Ludwig von Koopa
Posts: 2590
Joined: Fri Feb 27, 2015 8:07 pm
Current Project: The Mosaic Group's Journey and Toad's SMB Adventure, Also, The Enemy's Boss Rush(yeah sure)
Location: California
Chat Username: Mosaic
Contact:

Re: LunaLua Offical Thread - SMBX Usermod Framework

Postby Mosaic » Fri Jan 06, 2017 4:20 pm

Hoeloe wrote:
MosaicMario wrote:Actually, i think i was just doing something wrong, it's working correctly now. but i want to know how to do this with regular coins
and for the value to be carried over to other stages.


If you read the wiki page just one line further, the code to do it for regular coins is literally right there.

As for getting it to save between levels, you need to use either the onExitLevel event or the coins:onCollect event. These will allow you to save the currency value either when you exit the level, or when you collect a coin.


The Counter is there, but it won't go past 100 and resets whenever it reaches 100. How do i make it go past that?


where do you insert onCollect?
I believe in Jesus Christ as my Lord and Savior. If you do, put this in your signature.

Image


Join For mafia games --> http://mosaicmafia.prophpbb.com/


My Level Thread


My Projects

Image

It also has a discord server! -> https://discord.gg/XGwG2AK

Image

Contests: show
Contests i'm currently in
TTK's Mountain Level Contest: Level Finished
TTK's Sky Level Contest: Level Finished
Restricted Contest 2: Not Started

Contests I've previously joined
Community Contest 13: 30th Place
Water Level Contest Placed 1st
Community Contest 12 Placed 39th
Underground Level Contest Level Placed 5th
SVLC 2 Placed 7th
Snow Level Contest Level Placed 5th
and more...


Danny wrote:Here's some constructive criticism: What the hell.


Witchking wrote:Approved!


Discord Quotes: show
Image

User avatar
Mosaic
Ludwig von Koopa
Ludwig von Koopa
Posts: 2590
Joined: Fri Feb 27, 2015 8:07 pm
Current Project: The Mosaic Group's Journey and Toad's SMB Adventure, Also, The Enemy's Boss Rush(yeah sure)
Location: California
Chat Username: Mosaic
Contact:

Re: LunaLua Offical Thread - SMBX Usermod Framework

Postby Mosaic » Fri Jan 06, 2017 7:14 pm

I actually have a question unrelated to the currency system, how can you make a hammer bro throw hammers more rapidly?
does someone know how to make a script for that?
I believe in Jesus Christ as my Lord and Savior. If you do, put this in your signature.

Image


Join For mafia games --> http://mosaicmafia.prophpbb.com/


My Level Thread


My Projects

Image

It also has a discord server! -> https://discord.gg/XGwG2AK

Image

Contests: show
Contests i'm currently in
TTK's Mountain Level Contest: Level Finished
TTK's Sky Level Contest: Level Finished
Restricted Contest 2: Not Started

Contests I've previously joined
Community Contest 13: 30th Place
Water Level Contest Placed 1st
Community Contest 12 Placed 39th
Underground Level Contest Level Placed 5th
SVLC 2 Placed 7th
Snow Level Contest Level Placed 5th
and more...


Danny wrote:Here's some constructive criticism: What the hell.


Witchking wrote:Approved!


Discord Quotes: show
Image


Return to “LunaLua”

Who is online

Users browsing this forum: No registered users and 2 guests