PDA

View Full Version : Depth issue



bandinopla
July 4th, 2005, 11:23 AM
Hi there. I finish my first intent of a game. Here is the link www.bandinopla.com.ar/Games.htm (http://www.bandinopla.com.ar/Games.htm) the last one.

A big problem that the game have is the depth management (sorry my english)
In the game, I duplicate moviClips like the bullets and the rocks falling. And there is a point where... when I use the:

depth.conter++; x.attachMovie(...,..., depth.conter++)

... the problem appears, a trace alert that say: the 225 levels... I dont remember exactly, but I wess you know what I talking about.

OK, the question: Somebody know a good tecnic to manage the depths in a game where a lots of .attachMovie is required... like in games of shooting stuff?

OK. thanks.

PD: Senocular RULES!!

Templarian
July 4th, 2005, 12:51 PM
You can only have 255 levels for it. You must restart the depth counter back at 1 when it gets that high (it will then take out your oldest ones and replace them with the new ones whereever you placed them).

bandinopla
July 4th, 2005, 08:40 PM
Thanks a lot Templarian!

cholin
July 4th, 2005, 09:08 PM
Wait, what templarian? You can only have 255 levels of depth when you're attaching movie clips?

Sirisian
July 4th, 2005, 09:21 PM
no u can have 16000 editable ones

cholin
July 4th, 2005, 09:46 PM
Now im confused :) Ive been having a problem with a game, placing tiles. It only places like 60% of my maps, the others are there but invisible. If I make the map BIGGER, MORE tiles show up...smaller = less tiles! That's what surprised me. I will probably have a few thousand tiles though so that worries me.