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
Re: Orbits.lua (Coin circles, boo circles, and more!)
Posted: Wed Jul 19, 2017 1:10 pm
by Mr Boboo
*coughcough*REZNOR*coughcough*
Re: Orbits.lua (Coin circles, boo circles, and more!)
Posted: Wed Jul 19, 2017 6:30 pm
by HenryRichard
This is awesome! Definitely going to use it in my levels, and I've got several ideas how I will.
Re: Orbits.lua (Coin circles, boo circles, and more!)
Posted: Thu Jul 20, 2017 1:56 pm
by Oshi
Its about time this was made.
Re: Orbits.lua (Coin circles, boo circles, and more!)
Posted: Thu Jul 20, 2017 3:22 pm
by sleepyLundus
Can you build the solar system with this? It would be useful to have multiple layers of orbits.
Re: Orbits.lua (Coin circles, boo circles, and more!)
Posted: Thu Jul 20, 2017 4:30 pm
by PixelPest
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
Re: Orbits.lua (Coin circles, boo circles, and more!)
Posted: Thu Jul 20, 2017 5:34 pm
by sleepyLundus
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.
Re: Orbits.lua (Coin circles, boo circles, and more!)
Posted: Thu Jul 20, 2017 5:59 pm
by PixelPest
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
Re: Orbits.lua (Coin circles, boo circles, and more!)
Posted: Thu Jul 20, 2017 6:44 pm
by ivanmegafanboy
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.
Re: Orbits.lua (Coin circles, boo circles, and more!)
Posted: Thu Jul 20, 2017 6:58 pm
by PixelPest
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"
Re: Orbits.lua (Coin circles, boo circles, and more!)
Posted: Thu Jul 20, 2017 8:57 pm
by ivanmegafanboy
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!.
Re: Orbits.lua (Coin circles, boo circles, and more!)
Posted: Thu Jul 20, 2017 10:40 pm
by HenryRichard
Could I request functionality with platforms? They kind of work, but the player doesn't move with the platforms, which makes it ridiculously difficult.
Re: Orbits.lua (Coin circles, boo circles, and more!)
Posted: Fri Jul 21, 2017 10:01 pm
by PixelPest
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
Re: Orbits.lua (Coin circles, boo circles, and more!)
Posted: Sat Jul 22, 2017 5:03 am
by Snessy the duck
I always thought the NSMB coin circles were pretty cool, glad you're now able to make them in SMBX.