Page 1 of 1

Rotodisc pattern??

Posted: Sat Dec 03, 2016 4:11 pm
by loop
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.

Re: Rotodisc pattern??

Posted: Sat Dec 03, 2016 4:39 pm
by HeroLinik
LunaLua might be able to do it. Not sure how though.

Re: Rotodisc pattern??

Posted: Thu Dec 22, 2016 7:59 am
by Gaming-Dojo
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.

Re: Rotodisc pattern??

Posted: Thu Dec 22, 2016 12:56 pm
by Fuyu
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.

Re: Rotodisc pattern??

Posted: Thu Dec 22, 2016 5:51 pm
by loop
I edited the post so confusion can be averted.

Re: Rotodisc pattern??

Posted: Tue Jan 03, 2017 6:59 pm
by Rixitic
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.

Re: Rotodisc pattern??

Posted: Sat Jan 07, 2017 6:45 am
by Gaming-Dojo
Or you might be able to use the mechanic explained in this topic: viewtopic.php?f=87&t=17499

Re: Rotodisc pattern??

Posted: Tue Jan 10, 2017 12:49 am
by Sambo
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.

Re: Rotodisc pattern??

Posted: Tue Jan 10, 2017 11:01 am
by Gaming-Dojo
I meant placing it on star- or whatever-you-want-shaped track.

Re: Rotodisc pattern??

Posted: Sun Jan 22, 2017 2:30 pm
by timocomsmbx2345
well it was possible in 1.4.2-3