![]() |
particle engine in a gani?
I know how to put a light effect in a gani,
but is it possible to put in particle engine code into a gani? I have particle engine code, but just not sure how it would interpret to gani code. |
Wouldn't it be pointless? You could make sprites appear to be emitting something by hand :P
|
Quote:
|
Quote:
I'm bored, I'll do it. |
Quote:
|
Quote:
Yes you can. For anyone who wants to know how: At the bottom of the gani, type HTML Code:
SCRIPT |
Yes put the code into a gani script, if you do a gani for a projectile (shoot command) then you can retrieve the angle by reading player.angle
|
it works wonderfully! thanks!
|
This is kind of related, but how does Script work in Ganis? I'm trying to make spell that uses lighting effects.
|
.Open in wordpad
.Type "SCRIPT" .<insert script here> .Type "SCRIPTEND" |
Thanks. I'll experiment with it later :)
|
Quote:
|
1 Attachment(s)
Stefan asking me for something?
Ok yes I am happy to post a screenshot! Me on the left with the particle engine eminating smoke in a modified idle.gani, the fire on the right shows the same smoke script with different variables. The smoke image the first frame of the old smokeani.gif / smokeani.mng The level here and ganis are on Sanstrata Classic (in development) Also, here in America it's Thanksgiving, so thank you Stefan for Graal, it has been great fun the past five years that I have been playing and devloping with thee program, and I hope to enjoy it for many years to come. |
Quote:
Hmmm the particles-in-ganis might be interesting for effects like player-on-fire and foot-steps (in snow, water, grass) may be? The foot-steps in the water could be even animated |
Quote:
|
Quote:
|
I had been using a gani with a particle effect in a projectile.
However, the particles didn't follow the projectile's z. Is this a bug? Can anyone check this out for me? |
You have set the z value of the showimg/findimg ?
|
Yes, I tried updating the z with findimg. It still emitted at 0.
|
I have just recently tried using a particle effect in a gani where the player moves, and I have found that the x and y of the gani stay where the player was and do not follow the player. How do I get the particle effect to stay with the gani and the player? A timeout loop kills the particles, and setting the x and y in the gani makes no difference, please help.
|
Yen/prozac: what is the script that you have used? Remember that you must do "z = playerz"
There is also the new option "attachtoowner" to let the showimg+emitter automatically follow the player/npc/projectile |
:) 'attachtoowner' fixed it, thanks!
|
Yes, Thank you again Stefan, here is the code that I put with a text editor after the ANIEND at the end of the file.
It makes little concentric circles around, or following, the player. PHP Code:
|
Either you remove the attachoffset = line (it will use the current difference to the player position then), or you set attachoffset to a good value. So either this
PHP Code:
PHP Code:
|
| All times are GMT +2. The time now is 02:53 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.