Gamestudio Links
Zorro Links
Newest Posts
Capital slider is not saving in Z12
by frutza. 09/17/26 13:36
Avoiding pop-up training parameter results
by Martin_HH. 09/16/26 21:31
What are you working on?
by rayp. 09/16/26 20:20
Future of ZorroHFT
by TipmyPip. 09/16/26 09:28
Fun Arcade Car Physics (nfs style)
by rayp. 09/16/26 05:23
How to Choose a Free Cataract Surgery Centre in Delhi?
by lokkalyansamiti. 09/15/26 08:27
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
0 registered members (), 2,592 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
lokkalyansamiti, rahulbuilds, speedx, liop, Bauer097
19235 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