RE: Flash Q&A Thread 4 (Full Version)

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



Message


SirSchmoopy -> RE: Flash Q&A Thread 4 (8/16/2007 17:26:13)

can sum1 tell me how i make customizable characters, and when they walk, they stay looking the same insted of changing back to original color.
(NOTE: i tried experimenting using the whole "if(RedShirt = true)gotoAndPlay(walk2);" and it duznt work!




somebody621 -> RE: Flash Q&A Thread 4 (8/16/2007 17:33:02)

umm... yeah, but it's kinda complicated. I'll explain later, little short on time right now.




flsg -> RE: Flash Q&A Thread 4 (8/16/2007 21:48:37)

eragon: yes
SirSchmoopy: stop using ifs!!!XD




SirSchmoopy -> RE: Flash Q&A Thread 4 (8/17/2007 10:35:07)

but if statments are my specialty, also, theyre good for EVERYTHING!!!




flsg -> RE: Flash Q&A Thread 4 (8/17/2007 12:57:53)

speciality? can you get good using only ifs?
let me summerize the most commonly used statements by most flashers here:
if()
else
on(release)
gotoAndPlay()
onEnterFrame()
that's all, I guess




SirSchmoopy -> RE: Flash Q&A Thread 4 (8/17/2007 13:24:58)

quote:

ORIGINAL: flsg

speciality? can you get good using only ifs?
let me summerize the most commonly used statements by most flashers here:
if()
else
on(release)
gotoAndPlay()
onEnterFrame()
that's all, I guess

i use all of those to, just not AS often as if statements.


quote:

ORIGINAL: SirSchmoopy

can sum1 tell me how i make customizable characters, and when they walk, they stay looking the same insted of changing back to original color.
(NOTE: i tried experimenting using the whole "if(RedShirt = true)gotoAndPlay(walk2);" and it duznt work!





The Illusive Man -> RE: Flash Q&A Thread 4 (8/17/2007 15:52:20)

you want to make customisable characters... you're making it too hard for yourself!

i'd make a load of variables (one for each of the things you want) and put them in a GLOBAL ACTIONS layer

i'd do it like this

if(_root.shirt='green')
{
_root.guy.shirt.gotoAndStop("green");
else if (_root.shirt='red')
{
_root.guy.shirt.gotoAndStop("red");
}
if(_root.shorts='green')...

you get the gist

And to declare the variables, make the button that you choose with -
on(press)
{
_root.shirt='colour';
}




Correct me if i'm wrong flsg or eragon




SirSchmoopy -> RE: Flash Q&A Thread 4 (8/17/2007 16:14:43)

flsg: see, im not the only one who uses if statments :)
[sm=chicken.gif] Mr.Chicken approves this messege
VOTE CHICKEN FOR 2008!!!![sm=fantastisch_05.gif] or else.....




The Illusive Man -> RE: Flash Q&A Thread 4 (8/17/2007 16:18:28)

lol

if statements are the most commonly used statement in ANY coding language which has relatively the same syntax (php etc.)

i think flsg may be playing around with you lol - just maybe...

i mean, AQ must use so many if statements it could be the professor's what if machine




flsg -> RE: Flash Q&A Thread 4 (8/17/2007 20:36:28)

althorne: that's still hardcoding lol
why don't you just use:
_root.guy.shirt.gotoAndStop(_root.shirt); ?




SirSchmoopy -> RE: Flash Q&A Thread 4 (8/18/2007 15:17:46)

every check out mah new sig, also i found the solution to my problem before i made a code for it, yay!
btnRoll.onRelease = function(){
die = Math.ceil(Math.random() * 20);
enemyHP = enemyHP - die;
however, i still like the long one flsg posted betr, its long :)




flsg -> RE: Flash Q&A Thread 4 (8/18/2007 16:46:32)

SirSchmoopy: OMGOMGOMGOMGOMG
that's what eragon and I have been trying to tell you since the beginning, ............
also, use Math.floor() instead

edit: could someone PLEASE help me to make a parabola thing in AS where you can control the distance and the height of the curve, I figured it out once, but now I can't find the file back and I'm too stupid in physics




SirSchmoopy -> RE: Flash Q&A Thread 4 (8/19/2007 12:12:24)

http://img186.imageshack.us/my.php?image=ddfullvb3.swf
mah new game, however the battle system duznt work cuz i wuz tryin to make it where u roll a dicwe and everything, but it all came out wrong, and now its nothing like it, and just looks like a messes up turn by turn battle system :(




petermaxo -> RE: Flash Q&A Thread 4 (8/20/2007 10:19:59)

why is it a bad Idea to use global variables? is there an altrnative?




EragonZZZZ -> RE: Flash Q&A Thread 4 (8/20/2007 14:52:44)

Sure man, thats funny 'cause I just figured out how to do that.

Just have a function that draws a point on X,Y and increments X,Y by

Y = C(X*X) + B

Oh wait, that needs finagling cause flash is retarded and our coordinate grid is inverted.




Malagrond -> RE: Flash Q&A Thread 4 (8/20/2007 15:02:46)

Something that I'm not sure is helpful or not (that I just realized) is that the scripting language you are using is almost, almost exactly like Javascript. :P

If you're having problems with it, try googling Dynamicdrive . It's a great Javascript site, possibly with some links to Flash tutorials.

~Mala




flsg -> RE: Flash Q&A Thread 4 (8/20/2007 18:06:28)

Malagrond: lol, of course AS is like JS, they both use the same scripting engine, ECMAScript




somebody621 -> RE: Flash Q&A Thread 4 (8/20/2007 18:59:17)

Schmoopy or whatever: Use int() instead of Math.floor(). It's slightly faster. And easier to type. lol




SirSchmoopy -> RE: Flash Q&A Thread 4 (8/20/2007 19:40:25)

i made a big discovery!!!! thanks to experimenting :)!!
i found out that if u make it so you get rid of the part where it folows the cursers x position in the custom curser thing, tehn u can make a mouse that only goes up and down!!!(wow, im stoopid)
so i made a ping pong game out of it and it rox!!!(sorta, if ur really really really really bored [:(]...)
http://img213.imageshack.us/my.php?image=paddleballeu1.swf
oh btw comment on BOTH of my games posted on here!




flsg -> RE: Flash Q&A Thread 4 (8/20/2007 22:10:44)

SirSchmoopy: no offense, but codes are suppose to work this way. This is EXACTLY why I disrecommand the tutorials where they tell you to copy/paste codes, because you learn nothing from it
if this is a descovery, then I'm making 10+ discoveries every day when I use flash, and I could be a genius >_<




EragonZZZZ -> RE: Flash Q&A Thread 4 (8/20/2007 22:59:03)

Well, flsg, we all gotta learn some way :]




SirSchmoopy -> RE: Flash Q&A Thread 4 (8/21/2007 10:16:33)

quote:

ORIGINAL: EragonZZZZ

Well, flsg, we all gotta learn some way :]

its not my fault im a retard, its just moor fun to be stoopid [:)]!
also do u like my Dungeons and dragons game aswell?
and both of those games i did without help, i experimented for the whole thing :)




petermaxo -> RE: Flash Q&A Thread 4 (8/21/2007 10:21:24)

quote:

Peter: It's not really good to use _global a lot as you run into many scope problems later on. Also, you shouldn't work with scenes but rather frames. In fact, experienced users fit all their game/code on one frame.


doing that just made things worse.




SirSchmoopy -> RE: Flash Q&A Thread 4 (8/21/2007 20:14:35)

i made a customizable thing all on my own woot!!!!!! im on a roll today!!! and i made a flying birdy(no duh) that if u throw food it follows it, and when it bumps into walls it gets stuck [:)]!!!




EragonZZZZ -> RE: Flash Q&A Thread 4 (8/21/2007 21:19:46)


quote:

ORIGINAL: petermaxo

doing that just made things worse.


In what way?




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

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition
0.09375