Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   direction of a gani attribute? (https://forums.graalonline.com/forums/showthread.php?t=87571)

DustyPorViva 08-23-2009 05:28 PM

direction of a gani attribute?
 
Is there any way I can specify in which direction a gani attribute( player.attr[x] = "y.gani"; ) should be facing?

xXziroXx 08-23-2009 05:54 PM

Since you attach a gani to an object, the direction will automatically be the same as the objects direction.

DustyPorViva 08-23-2009 05:54 PM

Quote:

Originally Posted by xXziroXx (Post 1517879)
Since you attach a gani to an object, the direction will automatically be the same as the objects direction.

Nope. Hence why I'm asking :) That's what I thought, but it defaults to down for some reason.

xXziroXx 08-23-2009 06:02 PM

Quote:

Originally Posted by DustyPorViva (Post 1517880)
Nope. Hence why I'm asking :) That's what I thought, but it defaults to down for some reason.

Hm, weird - would have assumed it would auto-adjust.

Crow 08-23-2009 06:53 PM

Hm. Try player.attr[x].dir? Just a rough guess though..

fowlplay4 08-23-2009 07:30 PM

Well you can use player.x, player.y in the gani script, just use player.dir in it as well?

Crow 08-23-2009 08:42 PM

Quote:

Originally Posted by fowlplay4 (Post 1517910)
Well you can use player.x, player.y in the gani script, just use player.dir in it as well?

He never said he was using a script. I suppose he just got a gani with different stuff in the 4 directions each gani has by default.

DustyPorViva 08-23-2009 10:36 PM

Quote:

Originally Posted by Crow (Post 1517926)
He never said he was using a script. I suppose he just got a gani with different stuff in the 4 directions each gani has by default.

Yup. I'm trying to use a gani for the horse separate from the player's gani.

fowlplay4 08-23-2009 11:42 PM

Quote:

Originally Posted by DustyPorViva (Post 1517970)
Yup. I'm trying to use a gani for the horse separate from the player's gani.

Why not just use the already made ride ganis or use parameters?

Mark Sir Link 08-24-2009 12:30 AM

different style horses perhaps?

DustyPorViva 08-24-2009 12:36 AM

Quote:

Originally Posted by fowlplay4 (Post 1517989)
Why not just use the already made ride ganis or use parameters?

Eh... if I could use them I would have. However, players and horses are a good example of gani's that just don't work how the sprites once did, hence what I'm doing it differently.

It doesn't matter, because even if I could specify a direction gani attributes always display over the player.


All times are GMT +2. The time now is 09:23 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.