Orbits.lua (Coin circles, boo circles, and more!)

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?
PixelPest
Link
Link
Posts: 7112
Joined: Sun Jul 12, 2015 5:38 pm
Flair: Tamer of Boom Booms
Contact:

Orbits.lua (Coin circles, boo circles, and more!)

Postby PixelPest » Wed Jul 19, 2017 8:00 am

Here's my latest API!

orbits.lua allows the creation of various NPC circles. Originally intended for coin circles (as can be seen in NSMBWii) but any ID can be used. At this time it is suggested that you only create coin/Rupee circles, boo circles, and firebar circles. There is no guaranteed support for all NPCs but feel free to do what you wish with this API. Check out the documentation here: http://wohlsoft.ru/pgewiki/Orbits.lua

Download (includes demo level as seen below): https://www.dropbox.com/s/15bwmxf9tntfa ... a.zip?dl=0
Just the file: https://hastebin.com/nodocuqole.lua


User avatar
Mr Boboo
Mega Mole
Mega Mole
Posts: 267
Joined: Sat Jan 04, 2014 8:43 am
Flair: The Wicked Pissah

Re: Orbits.lua (Coin circles, boo circles, and more!)

Postby Mr Boboo » Wed Jul 19, 2017 1:10 pm

*coughcough*REZNOR*coughcough*
I shall return with a new episode...... soon.

Check out my Mario Maker levels!
Maker ID: QXF-9VB-RVG

User avatar
HenryRichard
Ludwig von Koopa
Ludwig von Koopa
Posts: 2843
Joined: Mon Dec 23, 2013 12:09 pm
Flair: Is this where I type my password?
Contact:

Re: Orbits.lua (Coin circles, boo circles, and more!)

Postby HenryRichard » Wed Jul 19, 2017 6:30 pm

This is awesome! Definitely going to use it in my levels, and I've got several ideas how I will.
Jesus is my savior.

User avatar
Oshi
Kamikaze Koopa
Kamikaze Koopa
Posts: 1218
Joined: Sun Aug 16, 2015 12:34 pm
Flair: This account is dying

Re: Orbits.lua (Coin circles, boo circles, and more!)

Postby Oshi » Thu Jul 20, 2017 1:56 pm

Its about time this was made.
Don't expect me to post here often, if at all.

I'm no expert, but I'm pretty sure that this isn't supposed to happen.

User avatar
sleepyLundus
Banned
Posts: 29
Joined: Fri Jul 14, 2017 10:15 pm
Contact:

Re: Orbits.lua (Coin circles, boo circles, and more!)

Postby sleepyLundus » Thu Jul 20, 2017 3:22 pm

Can you build the solar system with this? It would be useful to have multiple layers of orbits.
Image
Avatar is from the Horrortale comic by Sour-Apple Studios.

PixelPest
Link
Link
Posts: 7112
Joined: Sun Jul 12, 2015 5:38 pm
Flair: Tamer of Boom Booms
Contact:

Re: Orbits.lua (Coin circles, boo circles, and more!)

Postby PixelPest » Thu Jul 20, 2017 4:30 pm

sleepyLundus wrote:Can you build the solar system with this? It would be useful to have multiple layers of orbits.
If you really wanted to yes? You just place multiple orbits at the same x and y-values

User avatar
sleepyLundus
Banned
Posts: 29
Joined: Fri Jul 14, 2017 10:15 pm
Contact:

Re: Orbits.lua (Coin circles, boo circles, and more!)

Postby sleepyLundus » Thu Jul 20, 2017 5:34 pm

PixelPest wrote:
sleepyLundus wrote:Can you build the solar system with this? It would be useful to have multiple layers of orbits.
If you really wanted to yes? You just place multiple orbits at the same x and y-values
I mean like planets and moons and stars. Smaller things orbiting bigger ones.
Image
Avatar is from the Horrortale comic by Sour-Apple Studios.

PixelPest
Link
Link
Posts: 7112
Joined: Sun Jul 12, 2015 5:38 pm
Flair: Tamer of Boom Booms
Contact:

Re: Orbits.lua (Coin circles, boo circles, and more!)

Postby PixelPest » Thu Jul 20, 2017 5:59 pm

Yes. If you check out the documentation you can see that you can grab the NPC(s) in an orbit and can also attach an orbital to an NPC so try taking a look at that

User avatar
ivanmegafanboy
Blooper
Blooper
Posts: 175
Joined: Wed Aug 12, 2015 11:47 am

Re: Orbits.lua (Coin circles, boo circles, and more!)

Postby ivanmegafanboy » Thu Jul 20, 2017 6:44 pm

Is it possible to make the center of the orbit to have a certain speed? So the npc does a circle but at the same time is moving horizontally? Think of something similar to the Fire Gun from Contra.
I like editing levels
Check them out at: viewtopic.php?f=89&t=16926
Spoiler: show
Image
I support
Image
Also The Great Castle Adventure Remake
Spoiler: show
Image

PixelPest
Link
Link
Posts: 7112
Joined: Sun Jul 12, 2015 5:38 pm
Flair: Tamer of Boom Booms
Contact:

Re: Orbits.lua (Coin circles, boo circles, and more!)

Postby PixelPest » Thu Jul 20, 2017 6:58 pm

ivanmegafanboy wrote:Is it possible to make the center of the orbit to have a certain speed? So the npc does a circle but at the same time is moving horizontally? Think of something similar to the Fire Gun from Contra.
If you check out the documentation in the OP you'll find a named arg called "speedX" which reads "the horizontal speed of the orbit"

User avatar
ivanmegafanboy
Blooper
Blooper
Posts: 175
Joined: Wed Aug 12, 2015 11:47 am

Re: Orbits.lua (Coin circles, boo circles, and more!)

Postby ivanmegafanboy » Thu Jul 20, 2017 8:57 pm

PixelPest wrote:If you check out the documentation in the OP you'll find a named arg called "speedX" which reads "the horizontal speed of the orbit"
I should've checked it. Such a great API, this will come pretty handy for some ideas I have. Thanks!.
I like editing levels
Check them out at: viewtopic.php?f=89&t=16926
Spoiler: show
Image
I support
Image
Also The Great Castle Adventure Remake
Spoiler: show
Image

User avatar
HenryRichard
Ludwig von Koopa
Ludwig von Koopa
Posts: 2843
Joined: Mon Dec 23, 2013 12:09 pm
Flair: Is this where I type my password?
Contact:

Re: Orbits.lua (Coin circles, boo circles, and more!)

Postby HenryRichard » Thu Jul 20, 2017 10:40 pm

Could I request functionality with platforms? They kind of work, but the player doesn't move with the platforms, which makes it ridiculously difficult.
Jesus is my savior.

PixelPest
Link
Link
Posts: 7112
Joined: Sun Jul 12, 2015 5:38 pm
Flair: Tamer of Boom Booms
Contact:

Re: Orbits.lua (Coin circles, boo circles, and more!)

Postby PixelPest » Fri Jul 21, 2017 10:01 pm

HenryRichard wrote:Could I request functionality with platforms? They kind of work, but the player doesn't move with the platforms, which makes it ridiculously difficult.
Was aware of this. I plan to do it at some point since I tested it at one point and its original intent was not for blocktop NPCs. As I mentioned in the OP there's no guaranteed functionality and support for any NPCs besides those listed there. I do plan to make it work at some point though. One of the NPCs I'm making for SMBX2 will also require this so expect it surely sometime in the nearish future

User avatar
Snessy the duck
Ludwig von Koopa
Ludwig von Koopa
Posts: 2699
Joined: Sat Sep 20, 2014 6:04 am

Re: Orbits.lua (Coin circles, boo circles, and more!)

Postby Snessy the duck » Sat Jul 22, 2017 5:03 am

I always thought the NSMB coin circles were pretty cool, glad you're now able to make them in SMBX.
Image

My Switch friend code: SW-5399-6466-3493

Image


Return to “LunaLua”

Who is online

Users browsing this forum: No registered users and 1 guest