|
|
|
#1 |
|
Junior Member
Join Date: Jul 2007
Posts: 3
|
Play Symbol in a Symbol
hey im new to makign games in flash, and have been trying to do this for hours but its bugging me really abd and looked everywhere.
basically im making a game and a man has a gun wich he can shoot with, i have 3 symbols all movieclips embedded in one another. like this Man > Hand > Weapon but i got the weapon to be animated when he shoots, ive tried everything and dont know how to animate just the weapon in the Hand in its currerntly location, i can do it via a fixed point using the code below; attachMovie("deagle", "deagle", 4, {_x:50, _y:50}); that will play the animation everytime i click, but only in a fixed location, where i already have the hand moving on an axis, all i really need to know is how to run an animation thats embedded in multiple symbols. thx alot andy |
|
|
|
|
|
#2 |
|
Junior Member
Join Date: Jul 2007
Posts: 3
|
problem solved movieclip1.movieclip2.movieclip3.play(); works, just incase anyone else has this problem.
|
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Jul 2007
Posts: 3
|
i got a new problem now, say deagle is built up like this man.hand.deagle, and the deagle moves around the screen via rotation of the hand. how would i get the coordinates of the deagle when it moves, becuase its where i want to base the bullet shot from. ive tried man.hand.deagle._x & ._y but it always returns the same coorindates even tho the deagle has moved on the screen, anyone got any ideas im new to this and want to learn
.thx alot - andy |
|
|
|
![]() |
|
||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|