Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: SilverWizard_OTF on Tue 10/08/2004 16:51:46

Title: About character[ ].Z variable
Post by: SilverWizard_OTF on Tue 10/08/2004 16:51:46
I was wondering what is this "character[ ].Z" variable.
How can i use it to my game (Is it a kin dof co-ordinates?, like x or y?)

Can i use for to make my character do a kind of   "jumping" action
(e.g.  press a key, and jumps over a cliff).

Thanks for your help
Title: Re: About character[ ].Z variable
Post by: Mr Jake on Tue 10/08/2004 16:53:24
I think that it lifts the character off of the group, meaning that it ignores walk zones. So yes, you could create a jump effect without alot of toggling walkable areas.
Title: Re: About character[ ].Z variable
Post by: SilverWizard_OTF on Tue 10/08/2004 17:38:19
Thanks for your help.

Anyway, so i could something like that even with a  MoveCharacterDirest script command, couldn't i?
Title: Re: About character[ ].Z variable
Post by: Mr Jake on Tue 10/08/2004 17:42:06
I cant remember where I read it  but there are also other things this makes the character ignore. Ill see if I can find where I had it.
Title: Re: About character[ ].Z variable
Post by: SilverWizard_OTF on Tue 10/08/2004 17:44:56
Thanks.
Also, could you tell me what values can this variable take
(I was also wandering why is it called Z CO-ORDINATE)
Title: Re: About character[ ].Z variable
Post by: Hollister Man on Tue 10/08/2004 21:26:31
In 2 dimentions X and Y are up-down and left-right.  In 3d, Z is 'in-out'. 

This variable was added to AGS to create a pseudo-3d way of moving the character up into the 'air' without moving where the game determines its 'feet' to be.  So its like the engine just draws the character higher on the screen, rather than actually moving the coordinates of the character.  I think...
Title: Re: About character[ ].Z variable
Post by: TerranRich on Thu 12/08/2004 06:10:52
Basically, X and Y are the "flat" coordinates of the floor, as if you were looking at a plane from an angle. The "Z" coordinate is going up-down, "away" from this floor.