How do you limit the uses of a custom power-up?

This is the place for discussion and support for LunaLua and related modifications and libraries.
Forum rules
Before you make a topic/post, consider the following:
-Is there a topic for this already?
-Is your post on topic/appropriate?
-Are you posting in the right forum/following the forum rules?
PersonNamedUser
Birdo
Birdo
Posts: 2882
Joined: Fri Feb 27, 2015 8:07 pm

How do you limit the uses of a custom power-up?

Postby PersonNamedUser » Fri Jan 20, 2017 8:38 pm

I know i'm asking a lot of questions, but how can you limit the amount you can use a power-up before it runs out.

PixelPest
Raccoon Mario
Raccoon Mario
Posts: 7111
Joined: Sun Jul 12, 2015 5:38 pm
Flair: Tamer of Boom Booms
Contact:

Re: How do you limit the uses of a custom power-up?

Postby PixelPest » Fri Jan 20, 2017 9:02 pm

You can use eventu.lua or a normal counter to count as a timer and then player:harm() to lose the power-up

PersonNamedUser
Birdo
Birdo
Posts: 2882
Joined: Fri Feb 27, 2015 8:07 pm

Re: How do you limit the uses of a custom power-up?

Postby PersonNamedUser » Fri Jan 20, 2017 9:19 pm

is there a way you could post a code showing how it works?


Return to “LunaLua”

Who is online

Users browsing this forum: No registered users and 4 guests

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari