Orthographic camera?

Posted By: preacherX

Orthographic camera? - 07/04/17 10:04

If I just make a 2D-game, is in GameStudio a way to set the camera to an orthographic view like in Unity? At the moment the problem is that when I'm using only sprites and move the camera, the objects are not sorted correctly.

I could use view_entities or panels, but personal I find them too complicated to handle them.
Posted By: Reconnoiter

Re: Orthographic camera? - 07/04/17 10:19

Set "flags = ISOMETRIC;" (without quotes) in your VIEW / camera. E.g. for a custom VIEW:

Code:
VIEW* isometric_view =
{ 		  
	layer = 30;  
	pos_x = 60;  
	pos_y = 60;  
	size_x = 400;
	size_y = 400;  
	arc = 60;  
	aspect = 1;  
	ambient = 50;  
	fog = 0;  
	genius = NULL;
	clip_near = 100; 	
	clip_far  = 5000;
	flags = ISOMETRIC | NOFOG;
}



set(camera, ISOMETRIC);
Posted By: preacherX

Re: Orthographic camera? - 07/04/17 14:54

THANK YOU! grin
Posted By: txesmi

Re: Orthographic camera? - 07/04/17 14:57

Originally Posted By: preacherX
At the moment the problem is that when I'm using only sprites and move the camera, the objects are not sorted correctly.


Take a look at 'd3d_entsort'

Salud!
Posted By: Reconnoiter

Re: Orthographic camera? - 07/04/17 17:55

Originally Posted By: preacherX
THANK YOU! grin
, glad to be of help laugh
© 2024 lite-C Forums