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

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



Message


EragonZZZZ -> RE: Flash Q&A Thread 4 (11/25/2007 21:21:29)

...uh....while I'd love to lie and say I do, I don't know any web-based programming languages/markup languages/style sheeting-things.

No html, no asp, no CSS, no pHp. meh. Gotta learn soon.




SirSchmoopy -> RE: Flash Q&A Thread 4 (11/26/2007 16:06:05)

Oh, kk.
btw anyone who knows: how do i make a shop thingy in my game?




Darklord517 -> RE: Flash Q&A Thread 4 (11/26/2007 16:08:53)

SirScmoopy, i dont think "shop thingy" describes the concept very well. I understand that you want us to help make a Shop Engine. However you probably want us to just give you the code, let you copy and paste it, then you can say you did it.

You need to sometimes try it yourself. If it doesnt work, try again. Thats how i got my walking engine first walking.




SirSchmoopy -> RE: Flash Q&A Thread 4 (11/26/2007 16:12:59)


quote:

ORIGINAL: Comrad D

SirScmoopy, i dont think "shop thingy" describes the concept very well. I understand that you want us to help make a Shop Engine. However you probably want us to just give you the code, let you copy and paste it, then you can say you did it.

You need to sometimes try it yourself. If it doesnt work, try again. Thats how i got my walking engine first walking.

I don't like getting excact code. I hate getting exact code! I just wanna know how i do it. I tried making a movieclip that was plain forst frame, but filled second frame, then converted to a button, but that didn't work:(. i'v tried making the alpha 0, then makig the alpha 100 when u bought it, but that doesn't work either!




Darklord517 -> RE: Flash Q&A Thread 4 (11/26/2007 16:14:33)

For what?

For a weapon?

Idk try doing something with the parameters and variables so that when an item is "bought" then that item is set to play(); or whatever. Its been a while since ive done AS however that might work.




SirSchmoopy -> RE: Flash Q&A Thread 4 (11/26/2007 16:31:08)

thanks m8, but its turn by turn
i dont know if thatll work
ill try thanks m8




EragonZZZZ -> RE: Flash Q&A Thread 4 (11/26/2007 17:36:24)

Erg, I can't answer your questions because you don't code anything similar to the way I code and I STILL haven't figured out what you're asking :\

Sorry man, I want to help, but I just can't ahha.
Nothing personal.

I'd suggest taking a step back and learning Object-Oriented Programming. That could make your game a lot simpler to code.




SirSchmoopy -> RE: Flash Q&A Thread 4 (11/26/2007 18:32:08)

1.what's object orienting?
2.how do u code diffrntly?




flsg -> RE: Flash Q&A Thread 4 (11/26/2007 21:48:41)

SirSchmoopy: sorry but what are you trying to prove here? lol XD
basically you just wrote a sentence




Taerzik -> RE: Flash Q&A Thread 4 (11/27/2007 4:34:47)

oooooohhh....*sighs* Ok, helps here please: I need to be able to call a videoclip instance via a function.

here's my problem:

I need to call the instance by using a variable that holds it's name. I can use the variable to name the instance when I create it but not to call the instance.

like so:

player = "User"
... //other code
attachmovieclip (Avatar , player, _root.getnexthighestdepth)
player._x = 500
player._y = 300


Therein lies the trouble. The instance is created but it can't be called by using the variable that holds it's name and I have to use a variable to get it's name in the first place. Any ideas?




SirSchmoopy -> RE: Flash Q&A Thread 4 (11/27/2007 18:03:47)


quote:

ORIGINAL: flsg

SirSchmoopy: sorry but what are you trying to prove here? lol XD
basically you just wrote a sentence

whut am i trying to prove, why d u think im trying to prove something?(not sarcastic!)




EragonZZZZ -> RE: Flash Q&A Thread 4 (11/27/2007 21:17:53)

Object Oriented Programming is a style of programming revolving around bits of memory with specific 'functions' called objects.
Google it.




flsg -> RE: Flash Q&A Thread 4 (11/27/2007 21:23:07)

SirSchmoopy: well you just wrote like 3 lines of ASP code to write something on the screen...so I didnt get what you're trying to prove lol

Taerzik: first of all, you need to use _root.getNextHighestDepth(), which the caps, and the () at the end, maybe you did
second, you can't use player._x blah blah blah here, because here flash considers "player" as the INSTANCE NAME of a movieclip, not a variable of the same name
in AS2, you can use :_root[player]._x=500

it should work. BTW, _root["player"] is the same as _root.player. but _root[player] is not. It reference a variable.




Jadugarr -> RE: Flash Q&A Thread 4 (11/27/2007 21:25:40)

Can someone recommend something somewhere that can teach me the basics of AS 2.0?




flsg -> RE: Flash Q&A Thread 4 (11/27/2007 21:27:22)

Jadugarr: kirupa.com
or buy any of colin moock's book




SirSchmoopy -> RE: Flash Q&A Thread 4 (11/27/2007 21:45:39)


quote:

ORIGINAL: flsg

Jadugarr: kirupa.com
or buy any of colin moock's book

who said iWuzz trahin tu proov sumtin? i just wanted tp know if he culd elp meh since3 i heer he noz lootts of codin langugez




EragonZZZZ -> RE: Flash Q&A Thread 4 (11/27/2007 21:54:42)

Dude i KNOW you like typing that way but can we please try clearer speech? when I'm tired it drives me nuts.

Nah, he wasn't trying to prove anything, he was just showing me basically what it was.




Taerzik -> RE: Flash Q&A Thread 4 (11/28/2007 1:45:27)

Thanks flsg [:D], I figured that was the nature of the problem but I didn't know how to do it right. I'm going to go fix it now.

Edit: That did it!

Edit2: Finally! I've been having a problem with player avatars messing up when new players enter the rooms. Turned out it was because I didn't call to the root for the sign-in text box's contents. I found this out by adding a text box to display player's names beneath them and kept getting "level0_undefined" for a name. Basically, because I didn't get the code right, the user's name wasn't being assigned at all. Anyway, a few more steps and I'll have working multiplayer operation!
(I actually HAVE a working multiplayer environment but I'm still trying to get visual representation smoothed out)




ll_BLACKPANTHER_ll -> RE: Flash Q&A Thread 4 (12/1/2007 1:05:48)

is there a tutorial that teaches how to color and shade in flash?

Please and Thank you![:D]




Darklord517 -> RE: Flash Q&A Thread 4 (12/1/2007 3:48:52)

www.flashkit.com

I think thats it.

Its an incredibly detailed site with tutorials for virtually everything about Flash.

I suggest you go there.




Taerzik -> RE: Flash Q&A Thread 4 (12/1/2007 5:46:58)

^
^Might try the art tutorials at NewGrounds.


I'm getting further along now. I'm having a problem getting the other player avatars to update their position and I don't know why... I'm going to go sleep on it. Wait, I may have just landed an idea.




Taerzik -> RE: Flash Q&A Thread 4 (12/1/2007 13:26:03)

Double post for attention +

I wouldn't have but I felt like sharing this with you. I've been having a problem with testing multiple users logged into my program at once. (see previous post) Now I know why. I was doing the compile/test thing and then opening an instance of the flash file separately (in Flash Player) to test two users on the server sending and receiving data. What I didn't know was that even when the window focus is on another object (like the flash file being run by the flash player) Flash itself is still listening for key commands. Thus when I had the second users window up and pressed a key, the first user (being run in test mode in Flash) would respond as if IT had been given the command as well. [:@] And here I thought it was a mistake all along in my code... oh well.




flsg -> RE: Flash Q&A Thread 4 (12/2/2007 12:29:48)

Taerzik: are you good at AS? I'm asking ONLY because I want to know, it's not an insult

BTW, I added a handraw thing in my gallery, anyone wanna comment? XD




TreadLight -> RE: Flash Q&A Thread 4 (12/2/2007 13:53:22)

I made a button from this tutorial here: http://www.lukamaras.com/tutorials/menus-interfaces/easy-pixel-buttons.html

When I tried to upload it, it turned out saying this: (I uploaded with .swf)

What am I doing wrong? What does it mean?




Taerzik -> RE: Flash Q&A Thread 4 (12/3/2007 0:54:13)

Unfortunately I don't know what constitutes 'good'. I'm certainly not very experienced in AS, but I studied some Java previously and that helped me pick up other similar languages. I think I'm probably decent, but not 'fluent'. This that I've been working on is my first serious project in Flash. Previously I just read and practiced tutorials learning how to do the various things needed to make a game.




Page: <<   < prev  16 17 [18] 19 20   next >   >>

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition
0.140625