View Full Version : help attaching clips
Reginald
01-17-2004, 05:57 AM
right, ive started to make an RPG game about an hospital. Ive only just started but i have a problem.
When the game enters the battle frame, i can't get it to load a movieclip
And i put a code on it so it swaps depths with the y position it is at, but since ive done this it keeps makin multiple versions of it when i go to other frames
anyone help or try fix this please?
thanks
Reginald
01-17-2004, 12:15 PM
if you need any of the things clarifing just ask
Johnny64
01-17-2004, 01:04 PM
Don't take this bad ;)
But the way you have your code new you will be langer buging and you might ever never be able the bug it all.
I wound make some functions of thing you use more offen and keep you AS more together by makeing a layer (call it AS or some thing) for code only. And take it one step at a time.
again don't take this bad. :)
Edit: http://www.kirupaforum.com/forums/showthread.php?s=&threadid=36325
read this it will help ;)
Reginald
01-17-2004, 02:53 PM
i know i should but this is my first time makin anything thats quite big, im bound to have a bit dodgy a code, but ill be able to learn from it and if i do it again, re do the code.
This is really only a tryout thing, id be redoing the coding after
I still need my questions asking however
cheers for the input btw
Johnny64
01-17-2004, 03:32 PM
ok i think i found whats wrong ;)
when you use swapdepth() you put the MC on a new layer systeem. so if you:
put a mc on the frist and second frame.
then if you swaped the depth of the mc. and then play the movie to frame 3 where in your time line your mc does not exist, but you will still see the mc!?! why? well the moment you used swapdepth it got taken of the layer it was on in your time line and put on the new layersysteem where the mc will stay till you delete it with removeMovie()
so why is it duplicating? well then you goto room two all is fine but if you go back is goes wrong. room 1 is on the same frame where the doc shows up in the maintimeline. normally flash then over writes doc but because you swaped the depth of the doc, flash does not overwite but just makes a new one.
how it solve: i would have the doc show up on frame one and have the room after that and never go back the frame one.
sorry for the spelling misstakes :P
Reginald
01-17-2004, 03:36 PM
[QUOTE]Originally posted by Master64
how it solve: i would have the doc show up on frame one and have the room after that and never go back the frame one.
[QUOTE]
I could do that, but it wouldnt be a very good game.
Cheers for clearing up that swap depths thing though - now i understand it more
E-gads..
Umm... Decipher please? :)
Anyways... I'd check it out but I don't look at actual .swf's or .fla's... Sorry bud :D
Johnny64
01-17-2004, 03:48 PM
Originally posted by Marz
E-gads..
Umm... Decipher please? :)
Anyways... I'd check it out but I don't look at actual .swf's or .fla's... Sorry bud :D
you wouldn't what to see it :d:
joking ;)
@Reginald:well you don't have to see that the doc get put down first becuse you could black out the screen with a box thats just is the first frame ;)
@marz: i do dl fla thats why i have 800+ fla's on my pc :puzzled:
Reginald
01-17-2004, 03:50 PM
i dont know what you mean
Johnny64
01-17-2004, 04:04 PM
ok i might have misunder stond you :blush:
how would
how it solve: i would have the doc show up on frame one and have the room after that and never go back the frame one.
not make a good game?
:P
Reginald
01-17-2004, 04:06 PM
if he cant go back into rooms, it wont be very rpgish
Johnny64
01-17-2004, 04:26 PM
no.
you put the rooms in frames 2,3,4..... and the doc show up in frame 1
here ;)
Originally posted by Master64
you wouldn't what to see it :d:
joking ;)
@Reginald:well you don't have to see that the doc get put down first becuse you could black out the screen with a box thats just is the first frame ;)
@marz: i do dl fla thats why i have 800+ fla's on my pc :puzzled:
2 gigs of space devoted to .swf's and .fla's....
:hr:
Reginald
01-18-2004, 06:08 AM
i see what you mean but i cant get him to move
i might just give up:(
Johnny64
01-18-2004, 10:30 AM
Originally posted by Reginald
i see what you mean but i cant get him to move
i might just give up:(
don't give up :m:
do you what to see what a first crap game it got me a 4 week to make :ne: http://www.tikkie.nl/tm.html
no one makes a game over night (with the small exeption of Marz)
so like i sad take it one step at a time ;)
Reginald
01-18-2004, 02:46 PM
i suppose
I'll just keep working at hurt - i can't get any worse
vBulletin® v3.8.4, Copyright ©2000-2010, Jelsoft Enterprises Ltd.