RE: Flash Q&A Thread 6 - We help! (Full Version)

All Forums >> [Gaming Community] >> [Legends and Lore] >> Artists of Legend >> Art Academy



Message


Vampire and Human -> RE: Flash Q&A Thread 6 - We help! (11/30/2009 18:34:43)

@~JW~:
I meant which animation (though what you answered was part of it, thank you :D) looked best for comic-themed easing.

@Penguin Moglin:
If you're problem is due to what ~JW~ said (lines not connected) I'd suggest expanding fill gap-closing...erm...stuff..

Basically, when you select the Fill tool, look right below on the tools bar, and click the circle with a gap in the top, and set it to either large or medium. Don't always do this, as this may cause many problems for fills when lines etc. are close together.

From,
~VnH




MegaPoster404 -> RE: Flash Q&A Thread 6 - We help! (11/30/2009 20:05:53)

@Vampire and Human: I can't really decide, as I don't know what you mean by comic-themed easing :/

Universally, in any flash file I make (AS2 in CS4) I can't do checks to see what is in an input box. I can define input boxes and save them to variables, but checks on them never work, and checks on the variables defined from them don't work.

Dudu Master has the exact same problem, so I don't really think it's the code, but rather the program :/




~JW~ -> RE: Flash Q&A Thread 6 - We help! (11/30/2009 20:09:02)

What do you mean by "checks" an if statement?




MegaPoster404 -> RE: Flash Q&A Thread 6 - We help! (11/30/2009 20:12:03)

Yeah, an if() statement.




~JW~ -> RE: Flash Q&A Thread 6 - We help! (11/30/2009 20:13:48)

I cant really help you with that. If they dont work, and are right(I doubt you could get them wrong) then maybe its the program.




Vampire and Human -> RE: Flash Q&A Thread 6 - We help! (11/30/2009 21:15:38)

Hmm... That's a really weird probelm.. considering the codes all worked for me, I'd have to say it's the program itself.

In other words, don't worry much about that, as long as you know the code is right (and you could always check with us at the Q&A ;D!) it should be fine.

Though, you should probably get someone to check it out.

Maybe Adobe will fix it in an update, or by repairing the product via installation program.

Aaaanyways, when you make a tween (any kind) in the properties panel there will be options. One of them says easing. Easing basically means a change in speed over time. In other words, it can start fast but end slow. Or Start slow but speed up. I was just wondering what seems more Retro-style. In a comic-book-like way. As in, If I animated pictures from a comic book, what would seem right, heroic, retro? But I think I figured out the timing alright.

BTW everybody, I might have yet another great absence (this time not due to Assassins Creed II) thanks to the lack of Flash at my School, the computer teacher started a new class, where I teach full classes of kids (including the computer teacher) how to code and animate in Flash! Fun Fun :). I can't wait to assign oodles of homework to the annoying Freshman and sixth graders... meh heh heh...
So, basically, I'll be busy helping the kids and the teacher, since during the class the teacher is making me design and code the website for the school, with pictures information etc. provided by her.

Soooo.... yeah....

Good luck everybody,
~VnH




penguin moglin -> RE: Flash Q&A Thread 6 - We help! (12/1/2009 10:54:01)

jw and vah i tried what you both suggested and it still didnt work is it because i made it with the line tool?




Vampire and Human -> RE: Flash Q&A Thread 6 - We help! (12/1/2009 18:42:47)

Well, of course it wouldn't work, you never truly told us the actual problem.

SPEAK AND BE SPOKEN TO,
~VnH




~JW~ -> RE: Flash Q&A Thread 6 - We help! (12/1/2009 18:43:19)

Post the fla Penguin.




Vampire and Human -> RE: Flash Q&A Thread 6 - We help! (12/1/2009 18:44:16)

Don't even bother posting the file, just say what the problem is before we can actually answer.

~VnH




Sea -> RE: Flash Q&A Thread 6 - We help! (12/1/2009 19:15:23)

Help o_o

I have an enemy MC named "mushroom" and his health (health2) and my health (health)

this wont work...

if(_root.health < 1){
	_parent.gotoAndPlay("Death");
}
if(_root.health2 < 1){
	_root.mushroom._visible=false;
}


I have it on the frame, should it go somewhere else?




penguin moglin -> RE: Flash Q&A Thread 6 - We help! (12/2/2009 11:06:59)

sorry i wasnt so clear here are the fla. lightsaber untitled weapon
i made the lightsaber following a tutorial
1.opened flash new actionscript (3)
2. used the line tool and curve tool
3. got the outline done
4.tried to fill didnt work
5. tried closing small gaps
6.tried rebooting
7.zoomed in made sure there were no gaps

and i posted here
the same instruction for both weapons
thanks for any help
penguin




~JW~ -> RE: Flash Q&A Thread 6 - We help! (12/2/2009 11:14:12)

Thats not the fla. We need the editable file.




penguin moglin -> RE: Flash Q&A Thread 6 - We help! (12/2/2009 11:15:18)

umm how do i do that?




~JW~ -> RE: Flash Q&A Thread 6 - We help! (12/2/2009 11:17:50)

Save it and upload it to mediafire or w/e....




penguin moglin -> RE: Flash Q&A Thread 6 - We help! (12/2/2009 11:29:09)

here you go
lighsaber weapon untitled




EragonZZZZ -> RE: Flash Q&A Thread 6 - We help! (12/2/2009 15:15:22)

As for the textbox issue, could you post the code that doesn't work?




Sea -> RE: Flash Q&A Thread 6 - We help! (12/2/2009 17:37:22)

This is all on the frame:

stop();
health=100;
if(_root.health < 1){
	_parent.gotoAndPlay("Death");
}
if(_root.health2 < 1){
	_root.mushroom._visible=false;
}
health2= random (74) +1





This is on the enemy:

on(release){
	if(_root.health < 1){
		_root.health-=0;
		_root.health2-=0;
		_parent.gotoAndPlay("Death");
	}else{
		_root.health-=random (9)+1;
		_root.health2-=random (14)+1;
	}
}
on(release){
	if(_root.health2 < 1){
		_root.health-=0;
		_root.health2-=0;
		_root.mushroom._visible=false;
	}else{
		_root.health-=random(9) +1;
		_root.health2-=random(14) +1;
	}
}





And this is on the player (I doubt you need it though)

onClipEvent (enterFrame) {
	a = "Idle"
	speed = 10;
if(Key.isDown(Key.UP)) {
_y-=speed;
a = "U"
}
if(Key.isDown(Key.DOWN)) {
_y+=speed;
a = "D"
}
if(Key.isDown(Key.LEFT)) {
_x-=speed;
a = "L"
}
if(Key.isDown(Key.RIGHT)) {
_x+=speed;
a = "R"
}
if(this._y>400) {
	this._y=400;
}
if(this._y<0) {
this._y=0;
}
if(this._x>550) {
this._x=550;
}
if(this._x<0) {
this._x=0;
}
if(this.hitTest(_root.wall)) {
speed=0;
}
this.gotoAndStop(a);
}




^Please note:
U = Up movement
D = Down
R = Right
L = Left
a = animation




//.Shadow.\\ -> RE: Flash Q&A Thread 6 - We help! (12/2/2009 17:49:49)

The health=100;
Is not setting the _root. var so its catching as a Var in that Movie clip...

In some cases...

~Parker




Sea -> RE: Flash Q&A Thread 6 - We help! (12/2/2009 18:00:57)

so it should be _root.health=100;?

or what?




EragonZZZZ -> RE: Flash Q&A Thread 6 - We help! (12/2/2009 19:20:41)

stop();
health=100;
if(_root.health < 1){
	_parent.gotoAndPlay("Death");
}
if(_root.health2 < 1){
	_root.mushroom._visible=false;
}
health2= random (74) +1


I do not understand why you have this code at all, to be honest. You don't need it. You're setting health EXPLICITLY to 100...then checking to see if health is < 1? It will NEVER be less than 1.




In other news. I've been making AIM/MSN avatars! They're animated!

[image]http://img297.imageshack.us/img297/4904/newnoahavatar2.gif[/image]

[image]http://img35.imageshack.us/img35/2031/newnoahavatar.gif[/image]

[image]http://img177.imageshack.us/img177/1724/81468680.gif[/image]




Sea -> RE: Flash Q&A Thread 6 - We help! (12/2/2009 19:40:56)

^

n(release){
if(_root.health < 1){
_root.health-=0;
_root.health2-=0;
_parent.gotoAndPlay("Death");
}else{
_root.health-=random (9)+1;
_root.health2-=random (14)+1;
}
}
on(release){
if(_root.health2 < 1){
_root.health-=0;
_root.health2-=0;
_root.mushroom._visible=false;
}else{
_root.health-=random(9) +1;
_root.health2-=random(14) +1;
}
}



that reduces health2 by random and health by random

< 1 just means if it is less tan 1 (lol)

in my opinion, its easier than if(_root.health <= 0)




EragonZZZZ -> RE: Flash Q&A Thread 6 - We help! (12/2/2009 20:22:27)

Um. What? I don't follow you (and I don't think you followed me xD)




Sea -> RE: Flash Q&A Thread 6 - We help! (12/2/2009 20:46:27)

wait, if i put it on the frame, would it pick it up whenever it reaches 0, or only when the frame loads?




EragonZZZZ -> RE: Flash Q&A Thread 6 - We help! (12/2/2009 21:17:16)

Ah, see, only when the frame loads!

Try this:

stop();
health=100;
health2= random (74) +1;

function onEnterFrame {
     if(_root.health < 1){
	     _parent.gotoAndPlay("Death");
     }
     if(_root.health2 < 1){
	     _root.mushroom._visible=false;
     }
}




Page: <<   < prev  1 2 [3] 4 5   next >   >>

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition
0.15625