![]() |
Rotate Param1 in gani script
I feel stupid because I feel like I should know this, but I can't get it to work and have never done it before. I'm just trying to put a script in a gani to rotate the image set in param1. The below doesn't work.
PHP Code:
PHP Code:
|
Tried ROTATEFFECT? Or are you needing to have it constantly rotate?
|
I don't know how rotateeffect works. I had a look at atlantis' sword gani, with
ROTATEEFFECT 301 5.89048622548086 But besides it being the sprite id and some kind of radius/degree??? I don't really understand what's going on. I don't really know what is the starting value for rotateeffect and what the ending value is for a complete rotation (degrees? rad?). I just need it to roll over once and be done. |
It seems I'm using this wrong? I only see the image turn once...
PHP Code:
|
ROTATEEFFECT only works once with each sprite number. Also the rotation number is in radians.
To show the rotation you need to script it. You can manipulate sprites by using findImg( <sprite number>). PHP Code:
|
ahhh so you use findimg per the sprite id. Didn't know you could do that.
So my last issue is it seems its doing both if commands in rollImg and it shouldn't be. I'm passing the player.dir through in PARAM3, and in echo before it sets the ani it's correct and only sends once, but when you are dir 2 or 3 it still does 0 and 1 for some reason. If you are 0 and 1 dir, then it only does dir 1 and 2. I can't figure out for the life of me why it's doing 0/1 when the dir is 2 or 3. PHP Code:
|
1 Attachment(s)
This is how I would do it.
Generate the GANI: PHP Code:
Significantly more reliable than GANI script. Attached the output. |
I saw this a few weeks ago, but with how small of a thing I'm doing it's a bit much, and the work to redo all my stuff is a bit cumbersome at this point (I'd rather have one way than 2 separate ones for the same thing in different places), but it is much nicer don't get me wrong.
I went ahead and just dropped the idea I was doing. Keeping this open for the answers though, maybe something will help someone else possibly. |
Quote:
PHP Code:
|
I tried an else as well, and else if, but it seemed to always call both when it did down right.
|
Did you try the script I posted? I just tested it and it worked for me.
|
I completely dropped the scripted and already changed things.
I did try basically that (if I remember right) and it didn't work for whatever reason. |
| All times are GMT +2. The time now is 10:09 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.