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 15 of 30«<1314151617>»
Forum Login
Message << Older Topic   Newer Topic >>
10/28/2007 21:01:46   
EragonZZZZ
Member

But in that minute that you used to find the spare minute you'll realized you wasted a free minute looking for a free minute :P
AQ  Post #: 351
10/29/2007 18:11:09   
SirSchmoopy
Banned Multi


Eragon: can u tell me how to add a number to a variable???

_____________________________

Sig deleted.
Post sig only once per page.
Post #: 352
10/30/2007 3:54:04   
The Illusive Man
Member

Do you mean maths, or declare a variable as a number?

_____________________________

Post #: 353
10/30/2007 16:03:16   
EragonZZZZ
Member

Uh...okay

variablename += 10

or whatever number you need.
AQ  Post #: 354
10/30/2007 16:59:15   
SirSchmoopy
Banned Multi


eragon: whenever i try that i turns out as 010, because i set the variable as 0....

_____________________________

Sig deleted.
Post sig only once per page.
Post #: 355
10/31/2007 15:05:47   
EragonZZZZ
Member

Well lets see
Try declaring the variable like

var variable:Number = 0;
AQ  Post #: 356
10/31/2007 16:29:51   
SirSchmoopy
Banned Multi


eragon: i alredy declared it, but now i want to add 10 to it


_____________________________

Sig deleted.
Post sig only once per page.
Post #: 357
10/31/2007 18:31:04   
flsg
Member

exactly -.-
var hp:Number=0
hp+=10

here, it shouldn't be 010 now, because, like Jergal said, the default of the "+" operator is to add things together as string, not number
AQ  Post #: 358
11/1/2007 16:31:49   
SirSchmoopy
Banned Multi


I don't know why, but it duzn't work like that in flash 8 >.<

_____________________________

Sig deleted.
Post sig only once per page.
Post #: 359
11/1/2007 19:02:22   
flsg
Member

k try:
var hp:Number=0
hp+=Numer(10)
AQ  Post #: 360
11/1/2007 21:16:45   
SirSchmoopy
Banned Multi


ty!

_____________________________

Sig deleted.
Post sig only once per page.
Post #: 361
11/1/2007 22:58:42   
EragonZZZZ
Member

quote:

ORIGINAL: SirSchmoopy

I don't know why, but it duzn't work like that in flash 8 >.<


I seriously beg to differ here. It always ALWAYS always works for me that way.
But as long as the way you use works for you, there's no problem :D

< Message edited by EragonZZZZ -- 11/1/2007 22:59:18 >
AQ  Post #: 362
11/2/2007 15:29:09   
SirSchmoopy
Banned Multi


omfg!!! it duzn't work still!!!

_____________________________

Sig deleted.
Post sig only once per page.
Post #: 363
11/2/2007 15:40:33   
EragonZZZZ
Member

Are you kidding?

Okay. Copy and paste this code EXACTLY.

var test:Number = 1;
test += 4;
trace(test);

and tell me what that little window comes up with.
AQ  Post #: 364
11/2/2007 15:57:48   
SirSchmoopy
Banned Multi


5, but when i declare the variable in a different frame t duzn't work, so how'm i supposed to add a lil' everytime the person beats an enemy? btw, sorry if i got u rlly rlly rlly rlly rly pised, but i'm stil a noob, i haven't been here a year yet.

_____________________________

Sig deleted.
Post sig only once per page.
Post #: 365
11/2/2007 17:55:22   
flsg
Member

well why are you trying to make a game then? lol XD
k I'm a little bit pissed lol, gimme your source code, I'll fix the problem for you

edit: oh yeah I just remembered, you want to make games so that your friend would pay you right?
AQ  Post #: 366
11/3/2007 7:36:16   
SirSchmoopy
Banned Multi


the code aint the prob, but i need to add to a variable that i declared in a diff frame.

_____________________________

Sig deleted.
Post sig only once per page.
Post #: 367
11/3/2007 10:05:58   
flsg
Member

check your variable scope
or just simply send me the source >_<
AQ  Post #: 368
11/3/2007 14:11:54   
SirSchmoopy
Banned Multi


what do u mean 'variable scope'?

_____________________________

Sig deleted.
Post sig only once per page.
Post #: 369
11/3/2007 16:06:12   
EragonZZZZ
Member

argh, i question once again if you truly have the knowledge to create a game with the complexity of what you are trying to do.
Nothing against YOU...maybe you just need more practice or to read some things.
Variables are rather basic :P
AQ  Post #: 370
11/3/2007 18:11:23   
SirSchmoopy
Banned Multi


NO offence, not tryin to piss u off, but if they r so basic, why can't u just tell me how to do whut im asking?

_____________________________

Sig deleted.
Post sig only once per page.
Post #: 371
11/3/2007 18:24:14   
EragonZZZZ
Member

We're telling you exactly how to do it in the simplest, most clear terms possible.

Any more would be like trying to describe a circle without using the word 'round'
AQ  Post #: 372
11/4/2007 7:13:26   
SirSchmoopy
Banned Multi


actually, u never told me how to add to a varible without declaring it in the same frame!

_____________________________

Sig deleted.
Post sig only once per page.
Post #: 373
11/4/2007 18:15:40   
flsg
Member

oh just send the source >_<
it's not like I'll copie your ideas

_____________________________

My flash gallery
my game thread

flsg, proud old member of AQ(still playing :O)
AQ  Post #: 374
11/4/2007 20:41:37   
somebody621
Member

Aren't variables declared with var deleted after the frame? Also, it can't be stressed enough that the main game code should be on ONE frame (unless you need to spread work over multiple frames or you know what you are doing).

Done some work recently, but haven't gotten to uploading yet because photobucket... yea...

< Message edited by somebody621 -- 11/4/2007 20:42:13 >
Post #: 375
Page:   <<   < prev  13 14 [15] 16 17   next >   >>
All Forums >> [Gaming Community] >> [Legends and Lore] >> Artists of Legend >> Art Academy >> RE: Flash Q&A Thread 4
Page 15 of 30«<1314151617>»
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