Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (Akow, TipmyPip, tomaslolo), 788 guests, and 11 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19055 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 4 1 2 3 4
Re: Default camera view & ISOMETRIC flag? [Re: JibbSmart] #295554
10/26/09 03:19
10/26/09 03:19
Joined: Aug 2005
Posts: 336
Connecticut
Galen Offline OP
Senior Member
Galen  Offline OP
Senior Member

Joined: Aug 2005
Posts: 336
Connecticut
So I updated all my code to Lite-C, got my level working with anew camera from help on the boards, and I'm trying to use the ISOMETRIC flag but for some reason it isn't working. Here's the code I'm using for my camera--can you spot what I'm doing wrong?

action free_camera()
{
// c_setminmax(my);

VECTOR camera_force;
set(my,INVISIBLE|POLYGON);
// set(my,PASSABLE);

camera_force.z = 0;
vec_set(camera.x,my.x);
vec_set(camera.pan,my.pan);
camera.flags |= ISOMETRIC;

while(1)
{
camera_force.x = (key_w - key_s)*50*time_step;
camera_force.y = (key_a - key_d)*50*time_step;
vec_add(my.pan,vector(mouse_force.x*(-6)*time_step,mouse_force.y*6*time_step,0));

c_move(my,camera_force,nullvector,GLIDE+IGNORE_PASSABLE+IGNORE_PASSENTS+IGNORE_PUSH);
vec_set(camera.x,vector(my.x,my.y,my.z));
vec_set(camera.pan,my.pan);



wait(1);
}
}


Re: Default camera view & ISOMETRIC flag? [Re: Galen] #295596
10/26/09 13:11
10/26/09 13:11
Joined: Apr 2006
Posts: 737
Ottawa, Canada
O
Ottawa Offline
User
Ottawa  Offline
User
O

Joined: Apr 2006
Posts: 737
Ottawa, Canada
Hi!

change this
camera_force.z = 0;

to
vec_set (camera_force, vector(0,0,0));


Hope this helps!
Ottawa laugh

Ver 7.86.2 Pro and Lite-C
Re: Default camera view & ISOMETRIC flag? [Re: Ottawa] #295756
10/27/09 12:35
10/27/09 12:35
Joined: Aug 2005
Posts: 336
Connecticut
Galen Offline OP
Senior Member
Galen  Offline OP
Senior Member

Joined: Aug 2005
Posts: 336
Connecticut
I'll give that a shot--thanks for the tip!

Re: Default camera view & ISOMETRIC flag? [Re: Ottawa] #295848
10/28/09 02:54
10/28/09 02:54
Joined: Aug 2005
Posts: 336
Connecticut
Galen Offline OP
Senior Member
Galen  Offline OP
Senior Member

Joined: Aug 2005
Posts: 336
Connecticut
Didn't work. Had no effect, in fact.

frown

Re: Default camera view & ISOMETRIC flag? [Re: Galen] #295873
10/28/09 08:05
10/28/09 08:05
Joined: Oct 2007
Posts: 5,210
Ä°stanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,210
Ä°stanbul, Turkey
that screenshot doesnt look like it is isometric.

can you try to move the set(camera,ISOMETRIC); to first line of main?


3333333333
Re: Default camera view & ISOMETRIC flag? [Re: Quad] #295896
10/28/09 13:30
10/28/09 13:30
Joined: Aug 2005
Posts: 336
Connecticut
Galen Offline OP
Senior Member
Galen  Offline OP
Senior Member

Joined: Aug 2005
Posts: 336
Connecticut
I've tried that. I've tried putting it in many different places, but it never makes a difference.

I am however going to update my A7 from .77 to .80 and see if that makes a difference. My scripts are so simple that there really shouldn't be anything in my code blocking this flag...

Re: Default camera view & ISOMETRIC flag? [Re: Galen] #295927
10/28/09 16:10
10/28/09 16:10
Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
Espér Offline
Expert
Espér  Offline
Expert

Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
i got a problem with the isometric flag too...

When i set that flag..
it looks like this (click images to see full size):


But when i want to scroll.. it makes this:



What´s wrong?



2nd:
How to move objects normally?
When i add a model, and i press up.. i don´t want the model to move isometric left.. iw ant it to move UP..

Last edited by Espér; 10/28/09 16:13.

Selling my Acknex Engine Editions (A7 Com & A8 Pro):
>> click here if you are interested <<
Re: Default camera view & ISOMETRIC flag? [Re: Espér] #296003
10/29/09 02:49
10/29/09 02:49
Joined: Aug 2005
Posts: 336
Connecticut
Galen Offline OP
Senior Member
Galen  Offline OP
Senior Member

Joined: Aug 2005
Posts: 336
Connecticut
Could you post the camera/display script that you're using?

Re: Default camera view & ISOMETRIC flag? [Re: Galen] #296008
10/29/09 03:52
10/29/09 03:52
Joined: Mar 2006
Posts: 3,538
WA, Australia
J
JibbSmart Offline
Expert
JibbSmart  Offline
Expert
J

Joined: Mar 2006
Posts: 3,538
WA, Australia
Esper, move the camera further back. Its near-plane is intersecting the model. You can move it as far back as you want, since it won't affect how big objects appear on-screen.

Jibb


Formerly known as JulzMighty.
I made KarBOOM!
Re: Default camera view & ISOMETRIC flag? [Re: JibbSmart] #296029
10/29/09 09:42
10/29/09 09:42
Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
Espér Offline
Expert
Espér  Offline
Expert

Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
I'll use a Fake isometric Cam now... Because particles with beam Flag are Not working with an ISOMETRIC flagged cam...

Thanks anyways


Selling my Acknex Engine Editions (A7 Com & A8 Pro):
>> click here if you are interested <<
Page 2 of 4 1 2 3 4

Moderated by  HeelX, Spirit 

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