Home  | Login  | Register  | Help  | Play 

RE: Flash Q&A Thread 4

 
Logged in as: Guest
  Printable Version
All Forums >> [Gaming Community] >> [Legends and Lore] >> Artists of Legend >> Art Academy >> RE: Flash Q&A Thread 4
Page 3 of 30«<12345>»
Forum Login
Message << Older Topic   Newer Topic >>
8/16/2007 17:26:13   
SirSchmoopy
Banned Multi


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!

_____________________________

Sig deleted.
Post sig only once per page.
Post #: 51
8/16/2007 17:33:02   
somebody621
Member

umm... yeah, but it's kinda complicated. I'll explain later, little short on time right now.
Post #: 52
8/16/2007 21:48:37   
flsg
Member

eragon: yes
SirSchmoopy: stop using ifs!!!XD
AQ  Post #: 53
8/17/2007 10:35:07   
SirSchmoopy
Banned Multi


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

_____________________________

Sig deleted.
Post sig only once per page.
Post #: 54
8/17/2007 12:57:53   
flsg
Member

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

< Message edited by flsg -- 8/17/2007 12:59:53 >
AQ  Post #: 55
8/17/2007 13:24:58   
SirSchmoopy
Banned Multi


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!



< Message edited by SirSchmoopy -- 8/17/2007 13:27:51 >


_____________________________

Sig deleted.
Post sig only once per page.
Post #: 56
8/17/2007 15:52:20   
The Illusive Man
Member

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
Post #: 57
8/17/2007 16:14:43   
SirSchmoopy
Banned Multi


flsg: see, im not the only one who uses if statments :)
Mr.Chicken approves this messege
VOTE CHICKEN FOR 2008!!!! or else.....

< Message edited by SirSchmoopy -- 8/17/2007 16:18:49 >


_____________________________

Sig deleted.
Post sig only once per page.
Post #: 58
8/17/2007 16:18:28   
The Illusive Man
Member

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
Post #: 59
8/17/2007 20:36:28   
flsg
Member

althorne: that's still hardcoding lol
why don't you just use:
_root.guy.shirt.gotoAndStop(_root.shirt); ?
AQ  Post #: 60
8/18/2007 15:17:46   
SirSchmoopy
Banned Multi


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 :)

< Message edited by SirSchmoopy -- 8/18/2007 15:49:59 >


_____________________________

Sig deleted.
Post sig only once per page.
Post #: 61
8/18/2007 16:46:32   
flsg
Member

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

< Message edited by flsg -- 8/19/2007 10:32:28 >
AQ  Post #: 62
8/19/2007 12:12:24   
SirSchmoopy
Banned Multi


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 :(

_____________________________

Sig deleted.
Post sig only once per page.
Post #: 63
8/20/2007 10:19:59   
petermaxo
Member

why is it a bad Idea to use global variables? is there an altrnative?
AQ DF  Post #: 64
8/20/2007 14:52:44   
EragonZZZZ
Member

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.
AQ  Post #: 65
8/20/2007 15:02:46   
Malagrond
Member

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
AQ DF MQ  Post #: 66
8/20/2007 18:06:28   
flsg
Member

Malagrond: lol, of course AS is like JS, they both use the same scripting engine, ECMAScript
AQ  Post #: 67
8/20/2007 18:59:17   
somebody621
Member

Schmoopy or whatever: Use int() instead of Math.floor(). It's slightly faster. And easier to type. lol
Post #: 68
8/20/2007 19:40:25   
SirSchmoopy
Banned Multi


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!

_____________________________

Sig deleted.
Post sig only once per page.
Post #: 69
8/20/2007 22:10:44   
flsg
Member

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 >_<


< Message edited by flsg -- 8/21/2007 10:04:17 >
AQ  Post #: 70
8/20/2007 22:59:03   
EragonZZZZ
Member

Well, flsg, we all gotta learn some way :]
AQ  Post #: 71
8/21/2007 10:16:33   
SirSchmoopy
Banned Multi


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 :)

_____________________________

Sig deleted.
Post sig only once per page.
Post #: 72
8/21/2007 10:21:24   
petermaxo
Member

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.
AQ DF  Post #: 73
8/21/2007 20:14:35   
SirSchmoopy
Banned Multi


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 !!!

_____________________________

Sig deleted.
Post sig only once per page.
Post #: 74
8/21/2007 21:19:46   
EragonZZZZ
Member


quote:

ORIGINAL: petermaxo

doing that just made things worse.


In what way?
AQ  Post #: 75
Page:   <<   < prev  1 2 [3] 4 5   next >   >>
All Forums >> [Gaming Community] >> [Legends and Lore] >> Artists of Legend >> Art Academy >> RE: Flash Q&A Thread 4
Page 3 of 30«<12345>»
Jump to:



Advertisement




Icon Legend
New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts




Forum Content Copyright © 2018 Artix Entertainment, LLC.

"AdventureQuest", "DragonFable", "MechQuest", "EpicDuel", "BattleOn.com", "AdventureQuest Worlds", "Artix Entertainment"
and all game character names are either trademarks or registered trademarks of Artix Entertainment, LLC. All rights are reserved.
PRIVACY POLICY


Forum Software © ASPPlayground.NET Advanced Edition