149: Rotation Controller - Spinning

From NSMBW Modding Database
Revision as of 20:55, 31 January 2021 by Nin0 2257 (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
149: Rotation Controller - Spinning
Main Type(s): Platforms and Hazards, Events and Special
Sub Type(s): Rotation Controlled, Event Controllable Objects
Developer(s): Nintendo

Description

This controller will create synchronized movement between matched sprites and cause them to spin in a circular movement. Additionally, it can control the Zone's Zoom level depending on the rotation controller's current rotation.

Settings

<sprite id="149" name="Rotation Controller - Spinning" notes="This controller will create synchronized movement between matched sprites and cause them to spin in a circular movement. Additionally, it can control the Zone's Zoom level depending on the rotation controller's current rotation."> <dependency notes="A quick note about using this with rotation controlled coins and blocks: Coins and Blocks have a different rotation speed when paired with this controller than with other sprites. If using both coins and blocks, and other sprites, with the same central point of rotation, you will need multiple Spinning controllers in order to have them rotate at the same speed." /> <value comment="This pairs matching rotation controlled objects to this controller. A rotation ID isn't necessary when using this sprite to control the camera." idtype="Rotation" nybble="11-12" title="Rotation ID" /> <list comment="This determines the rotational adjustment for when items are first loaded or before the controller is activated. <br>The starting rotation can also set the Zone's Zoom level when it's loaded, by-passing the initial zoomed in camera." comment2="For coins and blocks, the Starting Rotation value is doubled! This means that a value of 4 will rotate the coin or block 180°." nybble="5" title="Starting Rotation"> <entry value="0">0.0°</entry> <entry value="1">22.5°</entry> <entry value="2">45.0°</entry> <entry value="3">67.5°</entry> <entry value="4">90.0°</entry> <entry value="5">112.5°</entry> <entry value="6">135.0°</entry> <entry value="7">157.5°</entry> <entry value="8">180.0°</entry> <entry value="9">202.5°</entry> <entry value="10">225.0°</entry> <entry value="11">247.5°</entry> <entry value="12">270.0°</entry> <entry value="13">292.5°</entry> <entry value="14">315.0°</entry> <entry value="15">337.5°</entry> </list> <list bit="26-28" comment="This determines the speed at which the rotation controller will complete one spin." comment2="The further the object is away from the controller, the faster the actual object will rotate." title="Rotation Speed"> <entry value="4">Very Slow</entry> <entry value="7">Slow</entry> <entry value="0">Slow+</entry> <entry value="1">Medium</entry> <entry value="2">Medium+</entry> <entry value="3">Fast</entry> <entry value="5">Faster</entry> <entry value="6">Very Fast</entry> </list> <dualbox bit="36" comment="This determines which direction the controller will rotate the attached objects." title1="Spins Counter-Clockwise" title2="Spins Clockwise" /> <list advancedcomment="A note to ASM hackers, there may be a difference between values 2 and 3. Feel free to investigate further." bit="31-32" comment="This determines the way the rotation controller functions, including its event-triggered behaviour." comment2="Certain obstacles function best when set to [Always Spin], while rewards for the player often function best when [Stops and Returns]. The other mode, [Spins While Active], allows you to create a staggered continous rotation (e.g., gears,) among other uses." title="Rotation Mode"> <entry value="0">Stops and Returns</entry> <entry value="1">Constant Spinning</entry> <entry value="2">Spins While Active</entry> </list> <value bit="9-16" comment="When the Triggering Event is activated, the controller will rotate all associated objects according to the mode. Deactivation effects will also differ depending on the mode. See the ! Comment." comment2="Constant Spinning: When activated, the items will decelerate to a stop and accelerate in the opposite direction. When deactivated, it will reverse back to its set movement in a similar fashion. <br> <br>Stops and Returns: When activated, the items will rotate the Rotation Distance and stop. When deactivated, the items will immediately start to rotate back to their starting positions, even if the initial movement is not completed. <br> <br>Spins While Active: When activated, the items will rotate continuously. When deactivated, the items will stop at the next multiple of its set Rotation Distance." idtype="Triggering Event" title="Triggering Event ID" /> <list comment="This determines the distance the rotation controller will spin the items before stopping, when set to the [Stops and Returns] or [Spins While Active] Rotation Modes." comment2="Coins and blocks have the same Rotation Distance as other sprites." nybble="6" requiredbit="32" requiredval="0" title="Event Triggered - Rotation Distance"> <entry value="0">0.0°</entry> <entry value="1">22.5°</entry> <entry value="2">45.0°</entry> <entry value="3">67.5°</entry> <entry value="4">90.0°</entry> <entry value="5">112.5°</entry> <entry value="6">135.0°</entry> <entry value="7">157.5°</entry> <entry value="8">180.0°</entry> <entry value="9">202.5°</entry> <entry value="10">225.0°</entry> <entry value="11">247.5°</entry> <entry value="12">270.0°</entry> <entry value="13">292.5°</entry> <entry value="14">315.0°</entry> <entry value="15">337.5°</entry> </list> <checkbox bit="40" comment="When enabled, the rotation controller will generate a silent POW-Block screen shake." comment2="It is highly recommended that you don't enable these settings when the controller is set to continuously spin. You will annoy people who play your level unless you're very careful about it." requiredbit="31-32" requiredval="1" title="Creates Fake POW-Block Effect (Leave this off)" /> <checkbox bit="39" comment="When enabled, the rotation controller will generate a Coin 'Sparkle' when linked to a Rotation Controlled Coin that has not been collected yet." comment2="It is highly recommended that you don't enable these settings when the controller is set to continuously spin. You will annoy people who play your level unless you're very careful about it." requiredbit="31-32" requiredval="1" title="Creates Coin Sound Effect (Leave this off)" /> <checkbox bit="40" comment="When enabled, the rotation controller will generate a silent POW-Block screen shake." requiredbit="32" requiredval="0" title="Creates Fake POW-Block Effect" /> <checkbox bit="39" comment="When enabled, the rotation controller will generate a Coin 'Sparkle' sound effect when linked to a Rotation Controlled Coin that has not been collected yet." comment2="Requires coins to be a part of the paired rotation items." requiredbit="32" requiredval="0" title="Creates Coin Sound Effect" /> <checkbox bit="38" comment="When enabled, the Zone's Zoom level will become fully dependant on the rotation controller's current angle. Thus, the camera will transition in accordance with the speed and current arc of the sprite. It supports all Rotation Modes, but works best with [Stops and Returns]. This is the pattern the Zoom Level will follow: <br> <br>0° = Zooms to the Zone's original Zoom Level. <br>22.5° = Zooms out roughly to the next available Zoom Level. <br>45° = Zooms out roughly 70% towards Zoom Level 4. <br>67.5° = Zooms out roughly 95% towards Zoom Level 4. <br>90° = Zooms out exactly to Zoom Level 4. <br>112.5+° = The pattern above loops in reverse, ultimately back to the original Zoom level at 180°." comment2="The controller will still work with a paired sprite, but it's not required. The camera movement won't differ whether it's spinning Clockwise or Counter-Clockwise. <br>Finally, multiple of these sprites using this setting in one Zone can overlap each other and take priority of the camera movement, but it's best for only one to be active at a time." title="Controls the Zone's Zoom Level" /> </sprite> </div>