PDA

View Full Version : Dress Up Game Trouble


LoveHeather
12-29-2008, 09:44 AM
Hello,

I had came here awhile ago and got help.
But now, i'm having more trouble.
When I've started adding more buttons and things
it started getting jacked up.
I'm so confused now on how to fix my bugs.
Unless I am really on the right track?
Do I just need to finish my action script on each new key frame set?
But I know there is something messed up in the first few frames, because
i changed it to where I wanted directions shown before the first set of tops.
and the example i had, had the tops shown in the beginning.. and i wanted
the person to have to click the tops for the tops to show.


Can anyone lend a helping hand?

I really want to learn flash, but there is really
only so much I can learn by myself.
I learn by seeing what someone else did to fix something.
and comparing what i did, that was wrong, to something that is right.

Well,
here is the download if anyone is up for the challenge! ^___^
http://www.speedyshare.com/806557683.html

Thank you soo much!

:o

Here is the original if it might help someone.
http://www.speedyshare.com/885575713.html

:o

I really do appreciate this.
I want to learn how to make these because i'm actually going to put my
fashion designs in a dress up game and submit them to Art & Design Colleges.
So it's more for school then just play, just so you know it's going to a good cause
and not some lame girl who just wants a dress up game. lol.
^_____^

Thank you uber much!
ANY help is appreciated. Even if it's just advice. ^___^
Thanks so very much ... again. lol, I cannot stress this enough.

orange gold
12-29-2008, 03:50 PM
here ya go ;)
but your still missing some code for start and stop drags in some of the latter buttons
and your fonts will change cause i didnt have the ones u used...

download your new fla here: http://www.mediafire.com/download.php?j2jzzjtuzqx

~OG

LoveHeather
12-30-2008, 12:21 AM
here ya go ;)
but your still missing some code for start and stop drags in some of the latter buttons
and your fonts will change cause i didnt have the ones u used...

download your new fla here: http://www.mediafire.com/download.php?j2jzzjtuzqx

~OG

Aww I tried downloading the file, several times. But it keeps saying "Unexpected file format"
Can you upload it again? Maybe upload it to speedyshare.com (you don't need a username for it, you just upload it).

Thank you so much. I really appreciate everything you've done.

Love,
Heather

LoveHeather
12-30-2008, 03:16 AM
Hm.. Maybe someone else can download that link and see if it works on their computer? then if it does, maybe they could try re-saving it, and uploading it?
Pretty please?

I have the day off, so i've been trying to work on this game for my
portfolio.

if not, it's okay. ^__^ just trying to see if i could get the file to work.

orange gold
12-30-2008, 03:25 AM
sorry id be more then happy to upload it again i just need to know... are you in flash mx, flash 8, flash cs3, flash cs4

LoveHeather
12-30-2008, 06:23 AM
sorry id be more then happy to upload it again i just need to know... are you in flash mx, flash 8, flash cs3, flash cs4

Macromedia Flash 8

^____^

orange gold
12-30-2008, 08:28 AM
sorry cant help you there... (i have flash cs4) anyways... as far as i know flash cs4 foesnt allow me to save as a flash 8 fla file... which in my opinion is way better then cs4(unless your looking at it from a 3d rendering perspective or a bone tool.... nvm) and i wish i could switch back... anyways adobe is gay i rly wish macromedia still owned flash and i have no firggen clue why adobe would make it so you cant save cs4 files as flash 8 files but you cant so sorry :'(

soo il try to explain how it works...

add this code to your first frame


_root.onEnterFrame = function() {
tops.onPress = function() {
gotoAndStop("tops")
}
bottoms.onPress = function() {
gotoAndStop("bottoms")
}
dresses.onPress = function() {
gotoAndStop("dresses")
}
socks.onPress = function() {
gotoAndStop("socks")
}
shoes.onPress = function() {
gotoAndStop("shoes")
}
items1.onPress = function() {
gotoAndStop("items")
}
}


now on every text/button selectable thing. make sure it is a movie clip. then name it with the names it has such as shoes would be named shoes... this applies for all of them except items... make that mc called items1
thats all!

(still hates adobe)

LoveHeather
12-30-2008, 09:32 AM
awww... well that sucks.
Yeah i've heard a lot of people say they don't care for the adobe flash.

I'm going to try and do what you told me. ^___^
I'm usually very determined and with the right help I can usually accomplish
stuff. I really want to learn flash so bad. I love all the things people make
and i wish so bad to learn it myself. But it's still a bit new and confusing you know? I guess all things take time. I was much quicker learning all my art programs and web-design, but this one is harder for me.

So i'm going to try that tonight.

one thing that confuses me is the two separate names.
How you have the instance name and then the other one.

^____^
Thank you for helping me, it means so much to me.

LoveHeather
12-30-2008, 10:57 AM
^____^
Some progress.

I put that code in the first frame for the actionscript.
and then added the instance names.
and it made all the buttons click-able and all the clothing showed up
when i clicked each. ^____^

My next step is figuring out how to make them drag and when they drag onto the doll or away from the closet they stay while you're able to keep clicking on the other buttons. It worked in the first example, and i haven't changed any of the coding from the first example on the clothes, but its not working now.
I think it may have something to do with me adding those frames in front of everything. but i'm not sure if this would cause things like that to go wrong.

here i am now:
http://www.speedyshare.com/327729837.html

I'm going to keep this version back, and really mess with the coding tonight.
Hopefully maybe i can just ::snaps fingers:: figure it out.
^____^

Thanks again for all your help.

LoveHeather
12-30-2008, 12:32 PM
Here's where i am at now.

http://heather-love.deviantart.com/art/Flash-Progress-107844883
there's it at a playable mode, to see what's wrong with it.
when you click on bottoms your tops dissapear, even the ones that were dragged, etc. etc.

Hmm... a side note, my friend was looking at it on deviant art and says the titles tops, bottoms, socks, shoes, dresses, items aren't clicking. only the tops are working. Is everyone else getting this problem?


Here is my newest version:
http://www.speedyshare.com/297529480.html

I have all the categories clickable
and i have all the clothing draggable, but
i need help getting them to stay on the doll when
you go to the next category.

here is the first example.
that has this capability, but somehow when i try to apply this code to the version 9 of my game it doesn't work. I'm sure its the right concept its just something is out of whack.

here's the first example once again:
http://www.speedyshare.com/250329678.html


^_____^
It feels like i'm so close to getting the hang of this.
I just need a bit more help.



OH! Also, how does flash determine layering?
like on the items frames, i have several items, bows, a necklace, gloves, goggles, how does it determine what goes on top?
its not by alphabetical, because the bows end up underneath the goggles and the purse and the necklace ends up on top of everything else.. so i was just wondering how you can pick and choose what you want on top of everything, you know? or is this done randomly?

i wrote the layering down and i cant find a match to anything, unless it's simply the order i placed them in flash? and that i don't know... so i wouldn't be able to tell on that, unless someone just told me. lol.


^____^
If anyone could help, i'd be deeply appreciative..
heck, heaven knows i'm already more then explainable appreciative right now
for djroberts and orange gold.
Thank you both!
Credit goes to DJRoberts for helping me with the first stage
Credit goes to Orange Gold for helping me through the second stages and helping me to understand what i was actually doing. lol.

orange gold
12-30-2008, 07:05 PM
you are going to have to use hittest..... say
if (socks1.hitTest(_root.character)) {
socksv = 1 //socksv stands for socks variable
sockslocx = socks1._x //sockslocx stands for socks location on the x scale
sockslocy = socks1._y//sockslocy stands for socks location on the y scale
} else {
socksv = 0

make sure you have every item on each screen... so like on the dresses item screen you still need the socks on that frame... just put them hiding off screen
now on the enterframe code of each new section say
if (socksv == 1) {
socks._x = sockslocx
socks._y = sockslocy
}


and now re-add the code from the socks frame i posted at the top to the new frame i told u to add this code onto right above


good luck!

orange gold
12-30-2008, 07:07 PM
the best tutorials on the whole web are at cartoonsmart.com buy their actionscript tutorial, and gaming tutorial, and website tutorial and you will know everything you ever need to know about making anything in actionscript in a matter of 8 hours

thats what started me out

also...


OH! Also, how does flash determine layering?
like on the items frames, i have several items, bows, a necklace, gloves, goggles, how does it determine what goes on top?
its not by alphabetical, because the bows end up underneath the goggles and the purse and the necklace ends up on top of everything else.. so i was just wondering how you can pick and choose what you want on top of everything, you know? or is this done randomly?

click on the ones you want on top... right click or on a mac control click go to arrange and select bring to top... now that one is above all of the others...




.

.

LoveHeather
12-31-2008, 06:50 AM
you are going to have to use hittest..... say
if (socks1.hitTest(_root.character)) {
socksv = 1 //socksv stands for socks variable
sockslocx = socks1._x //sockslocx stands for socks location on the x scale
sockslocy = socks1._y//sockslocy stands for socks location on the y scale
} else {
socksv = 0

make sure you have every item on each screen... so like on the dresses item screen you still need the socks on that frame... just put them hiding off screen
now on the enterframe code of each new section say
if (socksv == 1) {
socks._x = sockslocx
socks._y = sockslocy
}


and now re-add the code from the socks frame i posted at the top to the new frame i told u to add this code onto right above


good luck!

Hmm... it makes sense about the code up above.
but i have a few questions.

in the above code, socks1.hittest... (socks1 is the instance name of the image right?)

the socks1._x and socks1._y i don't need to put an actual x, y number in anywhere? to make it determine if the doll is wearing it? or is this just like if it's been moved then it stays on top?

When you say make sure i have every item on each screen, do you mean the item itself, or should i put the action script for the socks, dresses, pants, all on every screen?

or did you mean that the actual item like i would put the dresses on the socks page but somehow make them not visable.
if this is the case, do i only put the sock coding on the socks action script frames? or would i put the socks actionscript on every action script page?

Hm... i think i'll try to just guess on stuff. lol.
Mess around with it. maybe i'll get lucky. lol.
It does seem i get a bit closer every night.

^____^ Thank you for that.

orange gold
12-31-2008, 08:15 AM
Hmm... it makes sense about the code up above.
but i have a few questions.

in the above code, socks1.hittest... (socks1 is the instance name of the image right?)

the socks1._x and socks1._y i don't need to put an actual x, y number in anywhere? to make it determine if the doll is wearing it? or is this just like if it's been moved then it stays on top?

When you say make sure i have every item on each screen, do you mean the item itself, or should i put the action script for the socks, dresses, pants, all on every screen?

or did you mean that the actual item like i would put the dresses on the socks page but somehow make them not visable.
if this is the case, do i only put the sock coding on the socks action script frames? or would i put the socks actionscript on every action script page?

Hm... i think i'll try to just guess on stuff. lol.
Mess around with it. maybe i'll get lucky. lol.
It does seem i get a bit closer every night.

^____^ Thank you for that.

question 1: yes
question 2: you do need to determine both.. the location and if its been wearing it.. so when you go to a new screen it knows exactly where to put the socks or whatever the item is that it was wearing because when you go to a new screen all the items are going to be hidden offscreen
question 3: both
question 4: yes have them on every frame make them not visible by moving them offscreen

good luck
~ OG

DJRoberts
01-01-2009, 02:18 AM
check this swf i have attached, let me know if this is the sort of thing you were after.

So far the "tops, bottoms, items and socks" buttons work. before I continue to do the rest i would like to know if what Im doing is what you require.

LoveHeather
01-01-2009, 11:49 PM
check this swf i have attached, let me know if this is the sort of thing you were after.

So far the "tops, bottoms, items and socks" buttons work. before I continue to do the rest i would like to know if what Im doing is what you require.



It is the sort of thing I was after. I seemed to be able to add other things on that one, but when I went to try and do it with the new one it wouldn't work.
It's because I added a frame for directions in the beginning and I don't know how to make it work with that. Because I just put the code of the other one in and it stopped working. I couldn't figure out why it would stop working either.
here's the link:
http://www.speedyshare.com/297529480.html

LoveHeather
01-04-2009, 03:07 AM
Do you think you could upload the .fla file of the one you did with the tops and bottoms...

maybe i can try to figure out how to
get it to work with my newest version.
I was thinking maybe put the background
on the body frame, and then i still dont know how
i would do directions.. and then i was thinking maybe actually have
a little ?mark or help button that can just load first, and then
they click on the tops... like exchange the tops button for home/help button
or something and then move the tops button over, etc...
i might be able to figure something out with the coding that you've used.
but i cant see it because it's a .swf file.

Thanks for all your help. ^____^

Love,
Heather