Swinging Ball
The general idea for the swinging ball is:
The general idea for the swinging ball is:
Spawn several chain-pins from the base pin
Spawn several chain-pins from the base pin
Disable orbiting on these chain-pins
Disable orbiting on these chain-pins
Spread the chain-pins out about 15 pixels away from each other
Spread the chain-pins out about 15 pixels away from each other
Pin the chain-pins to the base (remember this is moving left and right constantly)
Pin the chain-pins to the base (remember this is moving left and right constantly)
Once you have spawned 9 chain pins spawn the spiked ball from the last pin
Once you have spawned 9 chain pins spawn the spiked ball from the last pin
Disable orbiting on the ball
Disable orbiting on the ball
Pin the ball to the final chain pin.
Pin the ball to the final chain pin.
Finally make sure that the ball hurts the player.
Finally make sure that the ball hurts the player.