Search tutorials
Creating a New Laser Shot
Here, we create ourselves a new "shot".
Set Variable: "shotname" = shotname+1 If (shotname>=1000) Set Variable: "shotname" = 1 End If Duplicate Movie Clip ("../star", "shot"&shotname, shotname)
Now, the gun doesn't want to worry about the shot anymore, because it has other things to worry about. So I made the shot with the ability to move itself. It does, however, need to know a few things in order to do that. It needs to know how far to travel in the (x) direction, and how far to travel in th (y) direction each time it moves itself.
Comment: ---------------------------------------------- Comment: determine shot travel values Comment: ---------------------------------------------- If (abs_mouse_x>=abs_mouse_y)
» Level Advanced |
Added: 2000-05-15 Rating: 6 Votes: 175 |
» Author |
Flashjunkie is a self-professed obsessive addict of life. Due to the highly artistic nature required of an Art Director for an Ad agency, he took up Flash to add some math to his diet. |
» Download |
Download the files used in this tutorial. |
Download (30 kb) |
» Forums |
More help? Search our boards for quick answers! |
-
You must have javascript enabled in order to post comments.
Comments
There are no comments yet. Be the first to comment!