-
so i guess its fine this way. rather than start a new thread since this is related i figured i'd ask u this:
so i have the enemy right; and i want him to move back and forth on this platform and originally i had him do a looping animation back and forth, but found it hard to go back into the MC, after there was already a motion tween goign on for the walking animation, to have him do another animation for like rearing up after getting hit from an attack (everytime i'd do an animation it would just make a big box around it and show it moving a little). Therefore, i thought it'd be easier to just have him move by actionscript and then put the animation in the MC for rearing up.
What is the best way for this because i'm obviously a novice. Can I still put all of the anims in the MC? if so how do i organize it? can an animation of walking go while a later animation in a different layer of him getting hit happen at the same time if gets called?
i also have a general question. well, why is it that when you create an MC out of an MC or something like that, or create a new symbol or animation inside, you can't get rid of it without deleting the entire MC. like i always screw something up and end up having to copy what was ever in there and make a new symbol.
Thanks for all your help!!! it's greatly appreciated!!
-
I think a lot of what should help you decide is how big of a project this is. Honestly, if this is supposed to be a real game, you need to think more OOP so you aren't wasting your efforts.
If this is a smaller, I want to learn more type of project (or something smaller for work) then we can try to figure something out.
Also, this also applies to the new thread you just started.
-
well its my senior project for school so i'm basically just doing as much as i can by friday to make it a game. but it doesn't ahve to be spectacular.
however, i was hoping I could make it a lot longer in the future and keep updating the code to make it a better game and hopefully make it a larger project.
but seeing as its essentially my first flash project and i'm not expecting to write amazing code nor am i expecting you to write code, its probably not going to be that big.
I mean, if I was really good at this and was making a large project, I probably wouldn't be on a forum asking people for help haha
-
so basically, i'm willing to accept that the game may not be amazing, but i'm not willling to accept defeat and make it crap haha
however, i would greatly appreciate any support to make this the best it can be. thank yoU!
imma go to bed tho now ;)
-
I think you should consider making each animation its own movieclip. then swap mc when each animation needs to run.
thats simple.
try that
-
ok cool; what's the code for swapping mcs? just like delete then attach movie? then when its at the end of the animation just delete and go back to the other?
-
pretty much ya. You could use the _visible property. or a delete call on the mc, and attach a different one.
either one can work.