Just when you thought it was safe to dive into those murky ocean waters…
This is a drag-and-drop-able silhouette movie clip of graceful-but-deadly, all-vector sharks. Placement, size, speed, distance, and tilt are all customizable via ActionScript and are totally random and unscripted for a very unique and organic feel. Includes a nice animated water background and a rollover bubble effect to boot!
Features
- AS2 , Flash 8 and above
- Drag ‘n’ drop
- Multiple settings controlled via ActionScript
- Totally random, organic actions
- All vector sharks
- Includes mouse rollover bubbles
- Includes optional water background
- Only 6kb without the included background
Settings:
- sharkNum: Number of sharks.
- sharkSpeed: High number = faster swimming.
- sharkDelay: Max millisecond delay before a shark respawns once it has swam off screen.
- sharkCloseColor: The color of the closest shark. Typically, you would make this close to black with a hint of main color.
- sharkFarColor: The color of the farthest shark. Typically this would match the background color to simulate murky water.
- startEmpty: Whether to start off empty and sharks swim in, or have sharks already on screen swimming when the movie loads.
- bigShark: Higher numbers = bigger maximum shark size.
- lilShark: Lower numbers = smallest minimum shark size.
- stageWidth: Use Stage.width or hard code a width in pixels
- stageHeight: Use Stage.height or hard code a height in pixels
- sharkLevel: Default start load level. (optional)
The sharks are all vector and will scale nicely to whatever size you like. This file contains a nice animated water background that you can use if you like, but it is not required for the shark functionality.
