Dynamically changing parts/symbols of an animation


hi

i trying find out how create animated cartoon characters should possible dynamically change clothes, hair, shoes etc. on characters.

in other words, imagining have swf file basic animation of "naked" cartoon character in swf file. want load swf in action script, , dynamically change different parts (symbols) of animation "dress" character. instance may want substitute arms , body of character som arm , body symbols illustrating red shirt. think need change symbols of swf dynamically - right ?

possible , how. right approach ? there boooks, articles, tutorials ?

best regards stig

there numerous approaches doing this. basic method create movie clips each separate body part, , within each movie clip put each version of part in separate frame.

for example, start right shoe:

create movie clip called rightshoe. on frame 1 put white shoe, on frame 2 put red shoe, on frame 3 put black shoe.

within same movie clip, add layer on timeline called actions, , create separate blank frames correspond frames 1,2 , 3 of shoe graphics. place stop(); action in each of 3 action frames.

go main scene, , give movie clip instance name of rightshoe.

on main timeline create actions layer. now, i'm not sure how want control changing of shoes, i'll give simplest method. can create buttons or can click directly on object change it, it's pretty same. clicking on show itself, put code in actions layer (do not select shoe movie clip):

rightshoe.onpress = function(){
this.play();
}

(by way, actionscript 2).

now each time click on shoe advance , toggle through alternative versions.

once understand how works, you'll able use buttons same thing, , cause multiple body parts change @ once.

of course, if you're trying change clothing of animated character moving, gets bit more complicated. still extrapolate above method tomake work.

there other ways possibly more elegant, require more advanced scripting. i'm trying illustrate 1 method easy comprehend.


More discussions in Adobe Animate CC - General


adobe

Comments

Popular posts from this blog

VIDIOC_S_FMT error 16, Device or resource busy - Raspberry Pi Forums

using a laptop skeleton to build a pi laptop - Raspberry Pi Forums

Forum for Joomla? - Joomla! Forum - community, help and support