Spindrift: Difference between revisions
(Spindrift) |
m (vategory) |
||
Line 23: | Line 23: | ||
==Behavior== | ==Behavior== | ||
Spindrift's behavior consists of two main actions. In its first action, Spindrift approaches its target forward velocity of 4 units/frame at a rate of 1 unit/frame per frame. If the distance from Spindrift’s home to Mario is greater than 1000 units, Spindrift’s target angle is set to face its home. If Spindrift’s home is less than 1000 units from Mario but more than 300 units from Mario, Spindrift’s target angle is set to face Mario. After its target angle is set, Spindrift rotates toward this angle a rate of 5.625 degrees/frame. Spindrift’s second action occurs if Mario runs in to Spindrift but does not kill it. In this action, Spindrift’s forward velocity is set to -10 units/frame, and then after 20 frames its action is reset to its first action. <!--There are some flags set but some seem to be unlabeled, will have to look into later--> | Spindrift's behavior consists of two main actions. In its first action, Spindrift approaches its target forward velocity of 4 units/frame at a rate of 1 unit/frame per frame. If the distance from Spindrift’s home to Mario is greater than 1000 units, Spindrift’s target angle is set to face its home. If Spindrift’s home is less than 1000 units from Mario but more than 300 units from Mario, Spindrift’s target angle is set to face Mario. After its target angle is set, Spindrift rotates toward this angle a rate of 5.625 degrees/frame. Spindrift’s second action occurs if Mario runs in to Spindrift but does not kill it. In this action, Spindrift’s forward velocity is set to -10 units/frame, and then after 20 frames its action is reset to its first action. <!--There are some flags set but some seem to be unlabeled, will have to look into later--> | ||
[[Category:Enemies]] |
Revision as of 05:18, 8 March 2020
Spindrift | |
Technical Constants | |
Object Group | General Actor |
Actor Group | Group 7 |
Hitbox | |
Interaction Type | Bounce Top |
Damage | 2 |
Health | 1 |
Radius | 90 |
Height | 80 |
Down Offset | 0 |
Spindrift is an enemy appearing in Cool, Cool Mountain and Snowman's Land.
Behavior
Spindrift's behavior consists of two main actions. In its first action, Spindrift approaches its target forward velocity of 4 units/frame at a rate of 1 unit/frame per frame. If the distance from Spindrift’s home to Mario is greater than 1000 units, Spindrift’s target angle is set to face its home. If Spindrift’s home is less than 1000 units from Mario but more than 300 units from Mario, Spindrift’s target angle is set to face Mario. After its target angle is set, Spindrift rotates toward this angle a rate of 5.625 degrees/frame. Spindrift’s second action occurs if Mario runs in to Spindrift but does not kill it. In this action, Spindrift’s forward velocity is set to -10 units/frame, and then after 20 frames its action is reset to its first action.