RE: Flash Q&A thread 3 (Full Version)

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



Message


flsg -> RE: Flash Q&A thread 3 (7/27/2007 10:55:59)

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




SirSchmoopy -> RE: Flash Q&A thread 3 (7/27/2007 14:31:25)

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.




flsg -> RE: Flash Q&A thread 3 (7/27/2007 20:35:35)

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




petermaxo -> RE: Flash Q&A thread 3 (7/27/2007 21:36:30)


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




shnaru1 -> RE: Flash Q&A thread 3 (7/28/2007 2:01:47)

is there a way i can make a wire frame with flash??




petermaxo -> RE: Flash Q&A thread 3 (7/28/2007 7:56:52)

What do you mean by a wire frame?




flsg -> RE: Flash Q&A thread 3 (7/28/2007 13:34:44)

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)




dominic_r_monroe -> RE: Flash Q&A thread 3 (7/28/2007 13:40:10)

So is there anyone who will teach moi




SirSchmoopy -> RE: Flash Q&A thread 3 (7/28/2007 16:20:51)

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. [:@]




flsg -> RE: Flash Q&A thread 3 (7/28/2007 17:40:31)

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




swenn -> RE: Flash Q&A thread 3 (7/28/2007 17:49:28)

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?




flsg -> RE: Flash Q&A thread 3 (7/28/2007 18:06:59)

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




EragonZZZZ -> RE: Flash Q&A thread 3 (7/28/2007 19:20:35)

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?




flsg -> RE: Flash Q&A thread 3 (7/28/2007 21:18:03)

EragonZZZZ: isnt' there a way to manipulate the mcs already?
in AS2 you could use a for-in loop




EragonZZZZ -> RE: Flash Q&A thread 3 (7/28/2007 23:43:48)

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




SirSchmoopy -> RE: Flash Q&A thread 3 (7/29/2007 7:42:21)

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!




EragonZZZZ -> RE: Flash Q&A thread 3 (7/29/2007 8:59:53)

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?




SirSchmoopy -> RE: Flash Q&A thread 3 (7/29/2007 9:22:02)

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




EragonZZZZ -> RE: Flash Q&A thread 3 (7/29/2007 9:27:16)

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?




SirSchmoopy -> RE: Flash Q&A thread 3 (7/29/2007 9:50:43)

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




EragonZZZZ -> RE: Flash Q&A thread 3 (7/29/2007 10:04:36)

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.




dominic_r_monroe -> RE: Flash Q&A thread 3 (7/29/2007 10:28:37)


quote:

ORIGINAL: dominic_r_monroe

So is there anyone who will teach moi





flsg -> RE: Flash Q&A thread 3 (7/29/2007 10:29:51)

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




dominic_r_monroe -> RE: Flash Q&A thread 3 (7/29/2007 10:33:58)

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




EragonZZZZ -> RE: Flash Q&A thread 3 (7/29/2007 10:43:45)

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.




Page: <<   < prev  11 12 [13] 14 15   next >   >>

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition
0.109375