FlashCats Flash Catalyst Tips N' Tricks

25May/10Off

Tracking objects to the cursor on rollover

Posted by tarajane

This post stems from a desire to 'track a visual object to the mouse' in Catalyst on rollover.
What does that mean exactly?
It means an object animates such that it appears to be following the mouse cursor.

I wanted to create a dodgeball game prototype in Catalyst, whereby the dodgeball hovered on the bottom of the screen, and followed the mouse horizontally.

On click, the dodgeball would animate and appear to bounce and hit a player.

You can achieve this mouse tracking behavior using either action sequences, or state transitions.

In this post, I'll discuss how to achieve this using action sequences.

The final outcome, should look like this:

Get Adobe Flash player