Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
M1 Oversampling
by jcl. 04/26/24 11:12
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
MT5 bridge not working on MT5 v. 5 build 4160
by EternallyCurious. 04/25/24 20:49
Trading Journey
by howardR. 04/24/24 20:04
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Scripts not found
by juergen_wue. 04/20/24 18:51
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, wandaluciaia, 1 invisible), 798 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 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 | chip programmers | 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