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)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|