Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   emitter stretch (https://forums.graalonline.com/forums/showthread.php?t=134264246)

haro41 08-18-2011 11:08 PM

emitter stretch
 
1 Attachment(s)
Im trying to rotate a particle, then stretch it in the x axis using stretchx.

Unfortunately, no matter how I set up the script, the particles are stretched along the new specified angle, rather than X relative to the screen. The result is the same whether I set them as modifiers or attributes.
PHP Code:

    emitter.addlocalmodifier("once"00"rotation""replace"degtorad(0), degtorad(360));
    
emitter.addlocalmodifier("once"00"stretchx""add"33); 

Is it possible to do what I need?
Attached a visual aid.

DustyPorViva 08-18-2011 11:14 PM

All adjustments made to images are always done to the original image instead of say, stacking the effects. I don't think there is a way around this.

haro41 12-23-2011 09:59 AM

update to this issue. apparently graal client v5 computes stretchx before rotation, and v6 does rotation before stretchx. So if you look at the image in the OP, the particle in v6 looks like image 2, and the particle in v5 looks like image 3.

Is it too much to ask for both? perhaps it could follow in which order the code lines are written?



All times are GMT +2. The time now is 05:13 AM.

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