Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Future Improvements (https://forums.graalonline.com/forums/forumdisplay.php?f=10)
-   -   Couple of image suggestions (https://forums.graalonline.com/forums/showthread.php?t=78636)

DustyPorViva 02-08-2008 11:17 PM

Couple of image suggestions
 
1) I've suggested it before but I'd still like to see it happen: allowing negative input to stretchx/y. This would flip the image when under 0. So stretchy=-1 would be a vertical flip of an image. Right now there is rotating of images, but no flipping. Why not?
2) changeimgvis also allowing negative input. This would show images under the tileset. Please... pretty please?

3) not a suggestion, but a bug of sorts. Rotating any gani, whether it be a player object or showimg object, will distort its position. This is not apparent on gani's such as idle, walk, push and such, but try rotating a gani and setting it as sword. Its position gets all screwed up.

zokemon 02-08-2008 11:27 PM

Quote:

Originally Posted by DustyPorViva (Post 1374203)
2) changeimgvis also allowing negative input. This would show images under the tileset. Please... pretty please?

You can already do this with guis.

DustyPorViva 02-09-2008 05:16 AM

Ya I know... you should know I know, you taught me! :P
I'm talking in relation to level coordinates though.

Admins 02-10-2008 03:41 PM

Ganis are rotating around their center (1.5, 2) I think

cbk1994 02-10-2008 04:22 PM

Quote:

Originally Posted by Stefan (Post 1374417)
Ganis are rotating around their center (1.5, 2) I think

Is it possible to change the anchor position of a GANI or image?

zokemon 02-10-2008 09:00 PM

Quote:

Originally Posted by cbkbud (Post 1374420)
Is it possible to change the anchor position of a GANI or image?

That's a great idea.

Maybe something like:
NPC Code:
centerrelative - Where the relative center of the image is based on the width and height.  Default is {0.5, 0.5}.
centeroffset - Pixel offset from the relative center that is regardless of image width and height. Default is {0, 0}.



So if you wanted it to always rotate around its lower left corner you could just do:
PHP Code:

centerrelative = {01};
centeroffset = {00}; 

If you wanted to rotate 16 pixels down and right from the upper left, you could just do:
PHP Code:

centerrelative = {00};
centeroffset = {1616}; 



All times are GMT +2. The time now is 08:23 PM.

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