orien2v2
09-08-2009, 02:35 PM
Hey guys I'm new to Flash and just learned some basic scripting.
Now I'm trying to do some animation which involves a character walking to a certain point then stops there.
I have created two movieclips, 1 is the animated character walking with instance name "char1", another is an animated character standing still but breathing with instance name "char2"
what I want is the char1 move along the x axis until (for example, x=600, the stage size is 800x600) and when it reaches 600, it stops and the instance (or symbol) changes to char2.
Simply put it, i want the character to walk, then comes to a halt, standing still at 600.
what I've done so far is this:
_root.char1.onEnterFrame=function(){
_root.char1._x+=2
}
that's what i did to get it walking. I've already placed the instance on the stage by dragging from the library. Thx a bunch!
Now I'm trying to do some animation which involves a character walking to a certain point then stops there.
I have created two movieclips, 1 is the animated character walking with instance name "char1", another is an animated character standing still but breathing with instance name "char2"
what I want is the char1 move along the x axis until (for example, x=600, the stage size is 800x600) and when it reaches 600, it stops and the instance (or symbol) changes to char2.
Simply put it, i want the character to walk, then comes to a halt, standing still at 600.
what I've done so far is this:
_root.char1.onEnterFrame=function(){
_root.char1._x+=2
}
that's what i did to get it walking. I've already placed the instance on the stage by dragging from the library. Thx a bunch!