Skip to main content
GuitarChick
Participating Frequently
May 12, 2015
Question

Creating an interactive animation

  • May 12, 2015
  • 1 reply
  • 444 views

So, I am making a game using flash and I have little experience with action script but I know I will need it for my idea.

I have started making a game about a scuba diver that goes under water to find underwater animals that she likes - it's a children's game.

My plan is to make it a side scrolling game and the scuba diver is directed with the mouse. I want the scuba diver to tilt in angles as it follows the mouse and if the mouse swaps directions, the scuba diver will do so as well.

I have already made my scuba diver on Flash as a movie clip with moving legs and arms. I need help actually coding the action script for the scuba diver to follow the mouse, change angle if the mouse is high or low and horizontally swap if the mouse moves back in the other direction.

Thanks!

If anybody has questions, please let me know. I am eager to make this game and finish it as soon as possible!

This topic has been closed for replies.

1 reply

Ned Murphy
Legend
May 12, 2015

Here is a Google link that should help you find tutorials for making the diver rotate to follow the mouse.

https://www.google.com/search?q=AS3+follow+mouse+atan2

GuitarChick
Participating Frequently
May 13, 2015

Thanks this really helps!!

Would you know where I could find a way to flip my sprite based on the location of my mouse?

May 13, 2015

to flip use

object.scaleX *= -1;

object.scaleY *= -1;