Rotodisc pattern??

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

Moderator: Userbase Moderators

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?
loop
Ninji
Ninji
Posts: 984
Joined: Sun Apr 17, 2016 5:56 pm
Flair: i may be dumb but im not stupid!
Pronouns: he/him/they

Rotodisc pattern??

Postby loop » Sat Dec 03, 2016 4:11 pm

Would it be possible to change how a Rotodisc moves, like in a square or in a star, with LunaLUA? I took notice while watching Mario Forever playthroughs.
Last edited by loop on Thu Dec 22, 2016 5:50 pm, edited 1 time in total.

HeroLinik
Larry Koopa
Larry Koopa
Posts: 3464
Joined: Fri Dec 20, 2013 1:28 pm
Contact:

Re: Rotodisc pattern??

Postby HeroLinik » Sat Dec 03, 2016 4:39 pm

LunaLua might be able to do it. Not sure how though.

Gaming-Dojo
Tweeter
Tweeter
Posts: 126
Joined: Mon Jan 25, 2016 9:20 am
Pronouns: he/him
Contact:

Re: Rotodisc pattern??

Postby Gaming-Dojo » Thu Dec 22, 2016 7:59 am

I'm not sure if, but it might be possible to do it by setting it to don't move and create a moving layer.That could get quite complicated with a star pattern though.

Fuyu
Fry Guy
Fry Guy
Posts: 3137
Joined: Sat Dec 21, 2013 2:40 pm
Pronouns: He/Him

Re: Rotodisc pattern??

Postby Fuyu » Thu Dec 22, 2016 12:56 pm

I don't know if that'd be possible. There are ways to make the circle more elliptic by increasing/decreasing its movement speed via NPC codes, but I haven't heard of it being possible to change its pattern so drastically.

loop
Ninji
Ninji
Posts: 984
Joined: Sun Apr 17, 2016 5:56 pm
Flair: i may be dumb but im not stupid!
Pronouns: he/him/they

Re: Rotodisc pattern??

Postby loop » Thu Dec 22, 2016 5:51 pm

I edited the post so confusion can be averted.

Rixitic
Spike
Spike
Posts: 273
Joined: Sat Dec 12, 2015 1:00 am
Contact:

Re: Rotodisc pattern??

Postby Rixitic » Tue Jan 03, 2017 6:59 pm

Having manipulated them myself for a boss (which I'd rather not share here for spoiler reasons), it's definitely possible. You just need to overwrite the coordinates manually in onTick.

Gaming-Dojo
Tweeter
Tweeter
Posts: 126
Joined: Mon Jan 25, 2016 9:20 am
Pronouns: he/him
Contact:

Re: Rotodisc pattern??

Postby Gaming-Dojo » Sat Jan 07, 2017 6:45 am

Or you might be able to use the mechanic explained in this topic: viewtopic.php?f=87&t=17499

Sambo
Snifit
Snifit
Posts: 211
Joined: Fri Jan 24, 2014 6:43 pm

Re: Rotodisc pattern??

Postby Sambo » Tue Jan 10, 2017 12:49 am

I don't know what explanation you're referring to. A method for controlling NPC movement was not discussed in that topic.
Here's the best way to keep an NPC from moving that I've found. Use this on the Rotidisc:

Code: Select all

npc.x = npc.x - npc.speedX
npc.y = npc.y - npc.speedX
This code moves the NPC back to where it was at the beginning of the frame, so that its speed doesn't cause it to move. It's a kind of weird way to do it, but its the only way that seems to work reliably.
It works best in onTickEnd, and you'll probably want to wrap the rotodisc with pNPC for better control. Then, move the NPC as desired by changing its position, not its speed. This will cause weird behavior for any player or NPC standing on it, but since you can't stand on a rotodisc, this isn't really going to be an issue in this case.

Gaming-Dojo
Tweeter
Tweeter
Posts: 126
Joined: Mon Jan 25, 2016 9:20 am
Pronouns: he/him
Contact:

Re: Rotodisc pattern??

Postby Gaming-Dojo » Tue Jan 10, 2017 11:01 am

I meant placing it on star- or whatever-you-want-shaped track.

timocomsmbx2345
Foo
Foo
Posts: 853
Joined: Sat Feb 06, 2016 1:44 pm
Contact:

Re: Rotodisc pattern??

Postby timocomsmbx2345 » Sun Jan 22, 2017 2:30 pm

well it was possible in 1.4.2-3


Return to “LunaLua”

Who is online

Users browsing this forum: No registered users and 4 guests

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari