Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
3 registered members (AndrewAMD, Ayumi, NewbieZorro), 14,141 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Orthographic camera? #466832
07/04/17 10:04
07/04/17 10:04
Joined: Sep 2005
Posts: 352
Germany
preacherX Offline OP
Senior Member
preacherX  Offline OP
Senior Member

Joined: Sep 2005
Posts: 352
Germany
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.

Re: Orthographic camera? [Re: preacherX] #466833
07/04/17 10:19
07/04/17 10:19
Joined: Dec 2011
Posts: 1,823
Netherlands
Reconnoiter Offline
Serious User
Reconnoiter  Offline
Serious User

Joined: Dec 2011
Posts: 1,823
Netherlands
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);

Last edited by Reconnoiter; 07/04/17 10:22.
Re: Orthographic camera? [Re: Reconnoiter] #466834
07/04/17 14:54
07/04/17 14:54
Joined: Sep 2005
Posts: 352
Germany
preacherX Offline OP
Senior Member
preacherX  Offline OP
Senior Member

Joined: Sep 2005
Posts: 352
Germany
THANK YOU! grin

Re: Orthographic camera? [Re: preacherX] #466836
07/04/17 14:57
07/04/17 14:57
Joined: Jun 2007
Posts: 1,337
Hiporope and its pain
txesmi Offline
Serious User
txesmi  Offline
Serious User

Joined: Jun 2007
Posts: 1,337
Hiporope and its pain
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!

Re: Orthographic camera? [Re: preacherX] #466853
07/04/17 17:55
07/04/17 17:55
Joined: Dec 2011
Posts: 1,823
Netherlands
Reconnoiter Offline
Serious User
Reconnoiter  Offline
Serious User

Joined: Dec 2011
Posts: 1,823
Netherlands
Originally Posted By: preacherX
THANK YOU! grin
, glad to be of help laugh


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1