M
Master_Esq
Guest
I'm working on an isometric game, and recently imported it to GMS:2. Now there is an issue where my isometric sprites cause each other to flicker when they are on the same y-axis. So, for example, a car moving past the face of a building causes each window sprite to blink as it passes it. Here is the Draw code of the isometric parent object that I use:
Can you see anything that may cause this? It only happens in GMS:2, it runs just fine in 1...
Code:
//Draw in Orthographic or Isometric view
if ( global.IsoView == false )
{
draw_self();
}
else
{
IsoX = GetIsoX(x,y);
IsoY = GetIsoY(x,y);
depth = -y;
//Draw shadow
if(HasShadow){
draw_sprite_ext(ShadowSprite,0,IsoX,IsoY,IsoXscale,IsoYscale,0,-1,0.5);
}
//then draw this sprite
draw_sprite_ext(IsoSprite,image_index,IsoX,IsoY-Z,IsoXscale,IsoYscale,0,-1,1);
}