RE: Flash help and tutorials, checked daily (Full Version)

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



Message


lil boi blue -> RE: Flash help and tutorials, checked daily (2/4/2006 13:53:03)

lol, you have a true competitor, i've got zoltan he's a walking action script, also i suggest telling people what variables are, i use the theory that all people are second graders, they dont know what the heck im talking about so i explain it,

actually when it comes to me and actionscript, im not good at finding it, but im very good at fixing incorrect codes like adding { where they belong or onClipEvents/onFrameEvents


one more thing,no advertising in my thread without my permission so dont do it....its like advertising a clan,




flsg -> RE: Flash help and tutorials, checked daily (2/4/2006 16:41:07)

Sorry, I though I could post my thread because I can find a lot of AS programmer here




lil boi blue -> RE: Flash help and tutorials, checked daily (2/4/2006 23:57:48)

its ok, http://i5.photobucket.com/albums/y158/photo12/demogamelesser.swf here is a lesser demo of my game for those who could only see a red star, it is flash MX 2004 flash player 7, the one just about everyone has




da nite slaya -> RE: Flash help and tutorials, checked daily (2/5/2006 3:23:55)


quote:

ORIGINAL: da nite slaya

onClipEvent (load) {
moveSpeed = 19;
}
onClipEvent (enterFrame) {
if (Key.isDown (Key.RIGHT)) {
this._x += moveSpeed;
} else if (Key.isDown (Key.UP)) {
this._y -= moveSpeed;
} else if (Key.isDown (Key.DOWN)) {
this._y += moveSpeed;
} else if (Key.isDown (Key.LEFT)) {
this._x -= moveSpeed;
}
}

How do I set boundries to where my object can and can't go and if you pass the screen to the Right, you go to the next level?
and if i push up, i do a jump effect?
and last, if i push space, i shoot/punch?





Zoltan -> RE: Flash help and tutorials, checked daily (2/5/2006 4:28:05)

That would be a sidescroller game or 'platform' game, that involves things like gravity. with something complex like that I dont want to just post the script, it would be better to learn the basics first befor jumping into full blowen gameing.




lil boi blue -> RE: Flash help and tutorials, checked daily (2/5/2006 11:46:34)

hey zoltan, can you give me some script of how to horizontally flip an mc in my game for instance

i put a tiger armor dude in place of the star (upping the graphics) and when i press left key i want him to flip horizontally, could you help me with this?




Deemahnik -> RE: Flash help and tutorials, checked daily (2/5/2006 12:21:42)

Hey once again! I'm back for more help animating. This time, for the entrance of an armor. I don't want to see the armor, and have a flame rise (being animated of course) and then disappearing to find the armor is there. The problem i have, is that i can't figure out how to animate the fire to have he tips of it move.




da nite slaya -> RE: Flash help and tutorials, checked daily (2/5/2006 13:04:24)

i have a .gif of animated flames detail is pretty good.(for a GIF) Tell me wut size u want it?

Can any1 Explain drag n drop? i get an error with the script even when I construct it!




Deemahnik -> RE: Flash help and tutorials, checked daily (2/5/2006 14:04:41)

I need a Flame large enough to cover this armor:
Demon
Note: there will be a weapon, if you need to know that.

Maybe you can teach me how to animate flames too.




lil boi blue -> RE: Flash help and tutorials, checked daily (2/5/2006 14:20:54)

quote:

ORIGINAL: da nite slaya

i have a .gif of animated flames detail is pretty good.(for a GIF) Tell me wut size u want it?

Can any1 Explain drag n drop? i get an error with the script even when I construct it!


make a movie clip circle and name it drag, then give it the instance name ' drag ' (down in properties)

then give drag this actionscript

onClipEvent (load) {
startX = this._x;
startY = this._y;
}
onClipEvent (mouseDown) {
if (_root.drag.hitTest(_root._xmouse, _root._ymouse)) {
_root.draggedDrag = true;
}
}
onClipEvent (enterFrame) {
if (_root.draggedDrag) {
_root.drag._x = _root._xmouse;
_root.drag._y = _root._ymouse;
}
}
onClipEvent (mouseUp) {
if (this.hitTest(_root.hit)) {
_root.draggedDrag = false;
_root.gotoAndPlay ([color=#0000FF]N[/color]);
_root.drag._x = startX;
_root.drag._y = startY;
} else {
_root.drag._x = startX;
_root.drag._y = startY;
_root.draggedDrag = false;
}
}


make a new MC (movie clip) and name it hit
give it the instance name hit

OK now change the N in _root.gotoAndPlay (N); to the frame you want it to go to when you drag ' drag' onto 'hit'

IT IS IMPERATIVE YOU GIVE THEM INSTANCE NAMES down in the properties tab
dont forget to give this code to both frames
stop();
so that they dont play

quote:

Hey once again! I'm back for more help animating. This time, for the entrance of an armor. I don't want to see the armor, and have a flame rise (being animated of course) and then disappearing to find the armor is there. The problem i have, is that i can't figure out how to animate the fire to have he tips of it move.


what you can do is make the fire a MC, goto insert ->timeline effects ->transform

then do change color and make the color alpha 0% this makes the fire invisible overtime

PS my flames take up 40 frames so.. http://i5.photobucket.com/albums/y158/photo12/fireblack.swf




saraid -> RE: Flash help and tutorials, checked daily (2/5/2006 14:22:00)

Hi, I'm having a slight problem with an RPG game me and a fried are creating. We have the basics of the system down:
There is a main village, where you can heal or go on an adventure and there is a battle system
Now, everything has been coded correctly and we have encountered only one problem so far;

What we are trying to acheive is allow the player to switch their weapon. I have a sword on the stage as a movie clip and I added a second frame within this movie clip where the sword becomes an axe. I set the AS of each frame to be stop(); under the beleif that the movie clip would stay on this frame until a command was input instructing it to do otherwise. This is what I have so far (I removed the axe frame of the sword movie clip) :

http://img303.imageshack.us/my.php?image=swiftentertainmentpresents7ci.swf

Now, what I hoped to acheive is that when the user clicks a button to change the weapon, the movie clip moves to the second frame and stays there, i.e. the axe replaces the sword. But the result was a constant flashing between sword/axe/sword/axe etc. I was wondering if you could tell where I've gone wrong.





da nite slaya -> RE: Flash help and tutorials, checked daily (2/5/2006 18:00:43)

i get an error:

Clipboard Actions: Line 19: Operator '=' must be followed by an operand
_root.gotoAndPlay (N);

Clipboard Actions: Line 20: ')' or ',' expected
_root.drag._x = startX;


Nevermind but i dont get

make a new MC (movie clip) and name it hit
give it the instance name hit


OK now change the N in _root.gotoAndPlay (N); to the frame you want it to go to when you drag ' drag' onto 'hit'

IT IS IMPERATIVE YOU GIVE THEM INSTANCE NAMES down in the properties tab
dont forget to give this code to both frames
stop();
so that they dont play


what if i want to drop wherever i release?




Dragoneill -> RE: Flash help and tutorials, checked daily (2/5/2006 18:26:24)

Wow lol im left in the dust. I just aint good at actionscript. Blue u think up that code urself or did u copy it? Cus if u just typed that than thats amazing




Deemahnik -> RE: Flash help and tutorials, checked daily (2/5/2006 19:19:26)

thanks again lil boi blue, i will use that. But, i need some help animating it so like the tips of the flame move, and it gets bigger, and then disappears.




Killer Pup -> RE: Flash help and tutorials, checked daily (2/5/2006 21:40:58)

Can somone please help me whith my battle system? Or am i alone on this. :(




saraid -> RE: Flash help and tutorials, checked daily (2/6/2006 14:21:29)

About the weapon change issue, its all sorted now, but I was wondering how I'd go about changin the damage that the weapon does if it changes, i have a variable 'monDam' which stores the result of a damage formula based on stats. One of these stats is 'wepPwr' which is a variable storing the attack power of the weapon. Now, I have tried setting a script on the frame within the weapon movie clip where it changes to the axe with code wepPwr = 5 however it is doing the same amount of damage as the first weapon, of which i have set its power to 2.

Now there is no problem with the formula, because I even tried a simplified example where i set the monDam to equal 10 and 20 on the 1st and 2nd frame of the clip respectively, I then made sure I displayed the result in a dynamic text box and i got NaN, so I was wondering if you could help me on this issue?




flsg -> RE: Flash help and tutorials, checked daily (2/6/2006 16:20:41)

saraid: NaN=Not a Number
perhaps you didn't display the correct thing




Killer Pup -> RE: Flash help and tutorials, checked daily (2/7/2006 22:12:50)

Hey Zoltan, im having a problem with the...

Now make 2 frames in the end and put that as the winning frame. and the loosing. So put this into the "You" frame. if (_root.HP==0) { gotoAndStop("lose"); } } if (_root.enemyHP==0) { gotoAndStop("win"); } } Now name one frame the "win" frame and the "lose" frame now put something in both of them and now your done! just put this into the lose and win frame: stop(); test it and love it!

area of your battle code... you think you can give me the part clearer? *Stuck at if life = 0 you die / monster life = 0 you win part*






Clipboard Actions: Line 1: Unexpected '}' encountered
if (_root.HP==0) { gotoAndStop("lose"); } }

Clipboard Actions: Line 1: Unexpected '}' encountered
if (_root.enemyHP==0) { gotoAndStop("win"); } }




Shojo Sanzo -> RE: Flash help and tutorials, checked daily (2/7/2006 22:40:03)

I need help with flash:
1.) Every time I try to do 'fill in' it WON'T fill in.
2.) Where do you flash sound affects?
3.) I can't find that botton bar at the bottom the activates buttons.




lil boi blue -> RE: Flash help and tutorials, checked daily (2/7/2006 22:55:31)

1) there may be a spot in the object that is not completely locked meanint a square with a perimeter of 40 cm and 2 inches is missing in the smallest corner. try using the freeform tool with magnet on and make sure all the pencil lines are locked in, try adjusting the fill by changing the option for "close no gaps" "close some gaps" "close gaps" or "close big gaps" and that should help

2)flash does not come with sound effects, you must import them from the file menu, it will accept some and not others, just try MP3 files, make a layer and place the sound from the library onto the stage for that layer only, dont put other things in it like clips (i did cover audio on my tutorial front page, read the table of contents)

3)The bottom bar may be minimized, there should be an arrow pointing up, click it once and it will pop up, worse case go to windows on the top bar and try opening from there for properties, actionscript, and help

by the way i do have flash Pro 8...




Zoltan -> RE: Flash help and tutorials, checked daily (2/7/2006 23:09:01)

Killer Pup In general I am sorry for the crappyness of that tutorial, try if (_root.HP==0) { gotoAndStop("lose")} that works for me




Shojo Sanzo -> RE: Flash help and tutorials, checked daily (2/7/2006 23:12:18)

It only lets me fill the lines,not the space inside the lines...




Zoltan -> RE: Flash help and tutorials, checked daily (2/7/2006 23:15:46)

Well there are two fill buckest one is the ink pot that 'fills' the lines and the other is the one that fills in objects make shure you have the right one selected (the inside fill bucket, the one you want should be on the right bottom of the toolbar)




Shojo Sanzo -> RE: Flash help and tutorials, checked daily (2/7/2006 23:19:30)

The fill color is the one I'm picking. It still isn't doing anything.




lil boi blue -> RE: Flash help and tutorials, checked daily (2/8/2006 0:34:48)

press k , that is the keyboard shortcut for the dump bucket(brush/ space filler)
press s , that is the keyboard shortcut for the ink bottle (line filler)

did you try my press q for free transform key, then press the magnet on the tool bar (that is the bar on the left) then go to each and every blessed vertex (appears like this _| when hovering free transform tool over it) dont change the curve of the lines (appears like this ) to indicate curve)

try double clicking it if you made it into a button, graphic, or movie clip in order to edit the actual look of it, you can tell if it is a symbol if when you click it there is a blue and black box around the object rather dotted fill




Page: <<   < prev  14 15 [16] 17 18   next >   >>

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition
0.125