You are not logged in.
Announcement
#1 20/08/08 3:09am
- Breakeraj
- Addict
- Registered: 19/02/08
- Posts: 240
Please take a look at this FLA and Help ME!!!
I am making a game Called Pokemon Jade and I am trying to make it tile based.
But whenever i am done with the Map and try to add the character, it won't work...
The character is there in a giant white place.But the map that was there dissapears.I'll upload the FLA to show you people.
http://www.resiststorage.org/docs/Pokemon5.fla
Last edited by Breakeraj (20/08/08 3:10am)
Offline
#2 20/08/08 3:25am
- crimsonhotsun
- Hardcore Member
- Registered: 30/03/08
- Posts: 96
Re: Please take a look at this FLA and Help ME!!!
You are probably putting the map and your character at the same depth. If you don't know what that is, look it up in your flash help manual.
If you attach a movie clip at a certain depth and another movie clip is also at the depth, the other is deleted while the one you just attached appears on it's depth.
[img]http://img101.imageshack.us/img101/9094/20707804nc6.png[/img]
My humble forums: [url=http://hologram.zxq.net/forums/]VirtualWorldForums[/url]
Offline
#3 20/08/08 3:34am
- Breakeraj
- Addict
- Registered: 19/02/08
- Posts: 240
Re: Please take a look at this FLA and Help ME!!!
K, but i didn't understand that...
Offline
#4 20/08/08 3:39am
- crimsonhotsun
- Hardcore Member
- Registered: 30/03/08
- Posts: 96
Re: Please take a look at this FLA and Help ME!!!
I have mx 2004 (flash 7) and I can't open the document.
I assumed (probably incorrectly) that you're using attachMovie() to put the tiles and character on the stage.
attachMovie has 3 arguments:
("idname", - this is the linkage name of the movie you want to attach
"new name", this is the name you give the new object
"depth") - this is what you should worry about: when two movie clips use the same number for this, conflict happens
hope that explains something.
If it doesn't put the .fla in a format I can use and I'll look at it.
[img]http://img101.imageshack.us/img101/9094/20707804nc6.png[/img]
My humble forums: [url=http://hologram.zxq.net/forums/]VirtualWorldForums[/url]
Offline
#5 20/08/08 4:11am
- 69corvette
- That one guy.
- From: Not Palmdale, CA
- Registered: 01/02/08
- Posts: 281
Re: Please take a look at this FLA and Help ME!!!
I took a look...
First off this looks like tonypa tutorial...Secondly the reason you things aren't appearing is because the depth your assiging "d++" (in line 81 and 116) is undefined so try using this.getNextHighestDepth instead or instantiate d = 0 or something.
nvm that was for the char... ok seriously don't copy and paste code from tonypa...you have two of the same function for the item placing...
you obviously copied-pasted-light-edited because some values havn't been declared so they make no sense.
[img]http://img221.imageshack.us/img221/8990/smallersigcopylb1.jpg[/img]
Offline
#6 20/08/08 5:08am
- Breakeraj
- Addict
- Registered: 19/02/08
- Posts: 240
Re: Please take a look at this FLA and Help ME!!!
69corvette wrote:
I took a look...
First off this looks like tonypa tutorial...Secondly the reason you things aren't appearing is because the depth your assiging "d++" (in line 81 and 116) is undefined so try using this.getNextHighestDepth instead or instantiate d = 0 or something.
nvm that was for the char... ok seriously don't copy and paste code from tonypa...you have two of the same function for the item placing...
you obviously copied-pasted-light-edited because some values havn't been declared so they make no sense.
Im using the tutorial on Kirupa.com
Offline
#7 20/08/08 5:12am
- Alpha009
- Edge
- From: new york
- Registered: 03/02/08
- Posts: 1117
Re: Please take a look at this FLA and Help ME!!!
LOL.
Offline
#8 20/08/08 5:31am
- crimsonhotsun
- Hardcore Member
- Registered: 30/03/08
- Posts: 96
Re: Please take a look at this FLA and Help ME!!!
There's pretty much one general approach to tile-based construction in flash so it shouldn't be surprising that the code is similar. Instead of copying and pasting, if that is what you did, you should read through the tutorial and try to understand it. If it's not making sense, try another tutorial or try testing your knowledge out on coding demos. When you think you understand more of actionscript, come back to the tutorial and try again.
[img]http://img101.imageshack.us/img101/9094/20707804nc6.png[/img]
My humble forums: [url=http://hologram.zxq.net/forums/]VirtualWorldForums[/url]
Offline
#9 20/08/08 6:24am
- Alpha009
- Edge
- From: new york
- Registered: 03/02/08
- Posts: 1117
Re: Please take a look at this FLA and Help ME!!!
i recomend you do what CHS suggested
Offline
#10 22/08/08 1:35am
- Breakeraj
- Addict
- Registered: 19/02/08
- Posts: 240
Re: Please take a look at this FLA and Help ME!!!
Ok thanks
Offline