Home  | Login  | Register  | Help  | Play 

RE: Flash Q&A thread 3

 
Logged in as: Guest
  Printable Version
All Forums >> [Gaming Community] >> [Legends and Lore] >> Artists of Legend >> Art Academy >> RE: Flash Q&A thread 3
Page 13 of 16«<1112131415>»
Forum Login
Message << Older Topic   Newer Topic >>
7/27/2007 10:55:59   
flsg
Member

SirSchmoopy: because you need to add one! XD is there a why to how the code was made? >.<
you go to the AS documentation by pressing the button with the "?" mark in the AS panel
AQ  Post #: 301
7/27/2007 14:31:25   
SirSchmoopy
Banned Multi


no first i make the number then it minuses ot XD
lets say i press space it makes the number 5 it FIRST makes the number THEN subtracts it.

_____________________________

Sig deleted.
Post sig only once per page.
Post #: 302
7/27/2007 20:35:35   
flsg
Member

SirSchmoopy: then just store it in a variable, then minus this
no offense but you should really learn the basics before trying to make a game

_____________________________

My flash gallery
my game thread

flsg, proud old member of AQ(still playing :O)
AQ  Post #: 303
7/27/2007 21:36:30   
petermaxo
Member


quote:

ORIGINAL: EragonZZZZ

lol, flsg just tore yo method apart.
Just kidding. But yeah...no go, man, no go.

Instead...give each frame the name of the monster (say its "monster1")
Then, when the monster name is given, say gotoAndStop(monstername)




um, that is basically what I am doing. I have changed it and it works, but I would like to know another way to do it if you have one, flsg
AQ DF  Post #: 304
7/28/2007 2:01:47   
shnaru1
Member

is there a way i can make a wire frame with flash??
AQ DF  Post #: 305
7/28/2007 7:56:52   
petermaxo
Member

What do you mean by a wire frame?
AQ DF  Post #: 306
7/28/2007 13:34:44   
flsg
Member

petermaxo: lol, there's at least 10 ways(I think)
just name the monsters with the same name of the frame label:
_root.monstersMC.gotoAndStop(monsterName)
or, set a number in the variable name:
_root.monstersMC.gotoAndStop("monster"+monsterIDNumber)
or, the best way(the one AQ and DF uses and my bubble's adventure uses) is to load the external swf movie into the main movie(get the monster's name in the database, then check for the same name of swf)
AQ  Post #: 307
7/28/2007 13:40:10   
dominic_r_monroe
Member

So is there anyone who will teach moi
AQ  Post #: 308
7/28/2007 16:20:51   
SirSchmoopy
Banned Multi


i kno about variables i kno all that stuff i kno the basics why duz every1 think i dont kno the basics!!!!
i just wanted to kno a FASTER way for subtracting the random number from it. i never said i didn't kno how. i just wanted to kno a FASTER way.

_____________________________

Sig deleted.
Post sig only once per page.
Post #: 309
7/28/2007 17:40:31   
flsg
Member

SirSchmoopy: what are you talking about? If you really know the basics you won't EVEN THINK about writing every numbers. You said you knew the basic, but isn't random() a basic function? Plus you could even check in the AS documentations...
and isn't what I said clear? I said store it in a variable, is it that hard? Go find a site for flash tutorials, and I doubt variables can't be found in the basic section
AQ  Post #: 310
7/28/2007 17:49:28   
swenn
Member

I would like to ask my first question.How do we asign a random value to a variable?
and how do you output text into a dynamic text field?or an variable's value?
AQ MQ  Post #: 311
7/28/2007 18:06:59   
flsg
Member

swenn: first, make a variable:
var yourVarName
then, use "=" to assign a value: var yourVarName=valueHere

if the textfield uses an instance name, then use:
textFieldName.text=valueHere
if the textfield uses a variable name, use:
testFieldName=valueHere
remember that flash transform the variable into the value before using it, so you can write this:
textFieldName=VariabeNameHere
AQ  Post #: 312
7/28/2007 19:20:35   
EragonZZZZ
Member

Oooh! Oooh! flsg! Guess what I just did?
You know AS 3.0's display list?

I just re-created it in OOP form. Yay! Go me.
(actually, I totally lie)

What I did, however, is create a way to add every MC currently on the stage to a single display list in a class so it can be easily modified.
Makes side-scrolling engines a bit easier, wouldn't ya think?
AQ  Post #: 313
7/28/2007 21:18:03   
flsg
Member

EragonZZZZ: isnt' there a way to manipulate the mcs already?
in AS2 you could use a for-in loop
AQ  Post #: 314
7/28/2007 23:43:48   
EragonZZZZ
Member

Yeah, thats what I'm doing.
Except instead of iterating over all the MCs on the stage, it iterates over them by name in an array, which is contained within a class and as such you have a finer degree of control :]
AQ  Post #: 315
7/29/2007 7:42:21   
SirSchmoopy
Banned Multi


quote:

ORIGINAL: flsg

SirSchmoopy: what are you talking about? If you really know the basics you won't EVEN THINK about writing every numbers. You said you knew the basic, but isn't random() a basic function? Plus you could even check in the AS documentations...
and isn't what I said clear? I said store it in a variable, is it that hard? Go find a site for flash tutorials, and I doubt variables can't be found in the basic section

omfg!!! i alredy know wht a variable is!
i never said any of those things u sed i did... also i knew the random number thingy!!! i never even asked for the code to make a random number i made a better 1 then u myself before i started talking on this forum again! i alredy made the dynamic text and the variable for my peeps' hp!

< Message edited by SirSchmoopy -- 7/29/2007 8:14:16 >


_____________________________

Sig deleted.
Post sig only once per page.
Post #: 316
7/29/2007 8:59:53   
EragonZZZZ
Member

Dude, no offense, but you just utterly convinced me you have no idea what you are doing.

quote:

made a better 1 then u myself

Okay, number one, it's a built-in function, you CAN'T make a better one.
Two, flsg's code was the most efficient solution, so no, you didn't make a better one.

quote:

I already made the dynamic text and the variable

What are you talking about?
To make dynamic text takes a freaking click and a single line of code. :P
And making a single variable isn't very impressive.
quote:


i never said any of those things u sed i did

Yes, you did. You said that you 'knew the basics'
flsg said that was probably incorrect because your original way of doing it was so inefficient that it seemed to indicate that you had no idea what to do.

Calm down man.
And just to tell you, it doesn't help your scripting cred in my eyes if you use 'kno' 'wht' '1' 'sed' instead of proper words. But thats my opinion, not a rule, so you can ignore that if you wish.

If you already knew all this, what exactly do you want help with? I can't seem to understand from reading back.
I'm done ragging on you, so I'm going to try to figure out what you need and help you, mkay?
AQ  Post #: 317
7/29/2007 9:22:02   
SirSchmoopy
Banned Multi


here let me show u my code for random numbers...it works better then the 1 she wrote down, the 1 she wrote down duzent even work!!!
stop();
init();
if(Key.isDown(Key.CONTROL)) {
//roll a die
die = Math.ceil(Math.random() * 10);

//check to see if it's a 10
if (die == 10){
output = "Critical";
} else {
output = " ";
} // end if statement
} // end roll

< Message edited by SirSchmoopy -- 7/29/2007 9:24:06 >


_____________________________

Sig deleted.
Post sig only once per page.
Post #: 318
7/29/2007 9:27:16   
EragonZZZZ
Member

Some unnecessary stuff in there...but I just modified it to test it in a .fla file and it works well.
So what was the problem?
AQ  Post #: 319
7/29/2007 9:50:43   
SirSchmoopy
Banned Multi


this code here i made is the problem it duzent work! (well, i'm not sure if it duz, cuz i got tired of workin' on it and made a new battle system....)
stop();
// just wht is sez....stop
init();
if (_parent.wep.hitTest (this)) {
//if the wepon hit this monster
if (die == 1)
//if the die sez 1
_root.monsterHP -= 1;
//minus 1 frum the monsters hp
if (die == 2)
_root.monsterHP -= 2;
if (die == 3)
_root.monsterHP -= 3;
if (die == 4)
_root.monsterHP -= 4;
if (die == 5)
_root.monsterHP -= 5;
if (die == 6)
_root.monsterHP -= 6;
if (die == 7)
_root.monsterHP -= 7;
if (die == 8)
_root.monsterHP -= 8;
if (die == 9)
_root.monsterHP -= 9;
if (die == 10)
_root.monsterHP -= 10;
}

and wen i wuz usin this code, it wuld minus it from my characters helth instead of the monsters health, even tho enemys health was called monsterHP and my characters hp was called health

< Message edited by SirSchmoopy -- 7/29/2007 9:54:41 >


_____________________________

Sig deleted.
Post sig only once per page.
Post #: 320
7/29/2007 10:04:36   
EragonZZZZ
Member

wth?
Why not just make it.

if (_parent.wep.hitTest (this)) {
_root.monsterHP -= die
}

and it doesn't work because you don't have brackets on the if statements.


< Message edited by EragonZZZZ -- 7/29/2007 10:05:21 >
AQ  Post #: 321
7/29/2007 10:28:37   
dominic_r_monroe
Member


quote:

ORIGINAL: dominic_r_monroe

So is there anyone who will teach moi

AQ  Post #: 322
7/29/2007 10:29:51   
flsg
Member

EragonZZZZ: thanks for your help, I didn't feel the need to write this simple code
BTW, SirSchmoopy, why do you use a hitTest for a turn-based RPG like AQ? Is that nessesary?
eragon just showed you the code I was trying to explain to you in 3 lines
now do you know what I'm talking about? You used 10 if() while with a little bit of thinking you could reduce it to 10. That's what I call basic
but I DO feel the need to re-release my bubble's adventure. Just to show you how a RPG is done(mine isn't big or great, but I'm sure it's THE game that got the most hits and replies in GoGA)

And one last word, just because I used Fae's avatar doesn't mean I'm a girl >.<


dominic_r_monroe: use Kirupa.com

< Message edited by flsg -- 7/29/2007 10:30:51 >


_____________________________

My flash gallery
my game thread

flsg, proud old member of AQ(still playing :O)
AQ  Post #: 323
7/29/2007 10:33:58   
dominic_r_monroe
Member

I was Using that.. for a while but it didn't do my needs i want to have a teacher (Msn/Pm)

Code name

what it does nice and slow
AQ  Post #: 324
7/29/2007 10:43:45   
EragonZZZZ
Member

uh, yeah, i was wondering why everyone was using 'she' for flsg.
Go figure.

So yeah, maybe you have the basics of the LANGUAGE down, but you aren't applying very much logic to your problems.
And I think his hitTest is a way of circumventing the need to specifically time in a damage phase; when the sword hits the monster, damage is shown.

AQ doesn't use this because it fails on monsters like croaker.
However, I just thought about it, and there are some unique and interesting effects that AQ lacks that could be added with this method.
AQ  Post #: 325
Page:   <<   < prev  11 12 [13] 14 15   next >   >>
All Forums >> [Gaming Community] >> [Legends and Lore] >> Artists of Legend >> Art Academy >> RE: Flash Q&A thread 3
Page 13 of 16«<1112131415>»
Jump to:






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