Tiled Textures Disappearing

Talk about making games.

Tiled Textures Disappearing

Postby OmniArts » Thu Jul 16, 2009 4:08 am

Hey,

Currently I'm working on a hack n slash rpg (as some of you may know)
In the game there are about 7 different ground textures which are in the one tiling group.

Tiling these over the top of each other causes the textures to disappear in some places while in game, but other areas work fine.

Does anyone know why this would be happening?
Would the only solution be to split the textures into 7 different groups
( i hope not, lol, trying to conserve time here!)
User avatar
OmniArts
 
Posts: 134
Joined: Sat May 30, 2009 2:30 am
Location: Sydney
Score: 16 Give a positive score

Re: Tiled Textures Disappearing

Postby krenisis » Fri Oct 23, 2009 2:35 pm

thats good question its happened to me too but i dont think it would be good if u made 7 different actors for each tile group its more like a random bug gameeditor has..best thing maybe to do is do as much drawing as u can in the background actor and only use tiles in events where u need actor to collide with tiles to increase movement ..the graphics in games u make are real good to be honest the tiles disappearing at certian points benifit u from the standpoint of making the game easier on the processor....try making it bitmap instead of png. but that might slow game down give it a shot see what happens
krenisis
 
Posts: 606
Joined: Sat Jul 25, 2009 3:27 pm
Score: 51 Give a positive score

Re: Tiled Textures Disappearing

Postby Hblade » Sat Oct 24, 2009 12:37 am

You need to use sevral different texture actors, and have the next texture actor 1 zindex higher then the last one... for example...
Code: Select all
zindex = last_actor.zindex + .01;

That should do it :D

The reason is, is because there not actually dissapearing, there simply overlapping eachother.
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score

Re: Tiled Textures Disappearing

Postby DST » Sat Oct 24, 2009 5:55 am

yes if you initialize a bunch of different actors/tiles without setting zdepth, then the draw order is based upon the actual array order;

the array order is either 1. based upon the order you added them to the sketch or
2. randomized.

Either way, draw order must be defined. The display is an additive canvas (just like the canvas actor) and the last thing drawn is always on top, because....it draws OVER the previous pixels.....


But this is relative to your problem. Do they simply disappear, or do others underneath show through? If they simply disappear and leave emptiness, then GE has the problem. If its like what we are saying, then you're asking the computer to draw two graphics in the same spot, and you have the problem.

The zdepth problem is not Ge specific. Other languages/renderers have the same 'problem' (it's not really a problem).
It's easier to be clever than it is to be kind.
http://www.lostsynapse.com
http://www.dstgames.com
User avatar
DST
 
Posts: 1117
Joined: Sun Apr 15, 2007 5:36 pm
Location: 20 minutes into the future
Score: 151 Give a positive score


Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest