Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Particle system, decrease size of particle over lifetime

Author
Message
Max123
8
Years of Service
User Offline
Joined: 22nd Mar 2016
Location:
Posted: 26th Apr 2016 18:40
Hello,
I hope this question hasn't been asked and answered before (At least I haven't found a topic about it)
Is it possible to decrease the size (or increase it) of a particle over lifetime.
Thanks in advance.
CJB
Valued Member
20
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Essex, UK
Posted: 26th Apr 2016 20:06
Hi Max123. Sure, you need to use AddParticlesScaleKeyFrame. You can set the particle to scale up or down at certain points throughout its lifetime.
V2 T1 (Mostly)
Phone Tap!
Uzmadesign
Max123
8
Years of Service
User Offline
Joined: 22nd Mar 2016
Location:
Posted: 26th Apr 2016 21:04
I'm so glad you helped me out
Thanks a lot!
Just one more question related to this topic:
I used this: AddParticlesScaleKeyFrame(1, 1, 0.5) and thought that, if I understood the documentation right, each particle should become half of its previous size when it was alive for one second.
The problem is that this happens immediately and not just after 1 second has passed. Am I missing something?
IBOL
Retired Moderator
20
Years of Service
User Offline
Joined: 30th Mar 2004
Location: @IBOL17
Posted: 26th Apr 2016 21:10
i am so glad there is a command for this!

I would suspect that the answer to your second question is that you need to specify an "initial frame" at time zero, with scale of 100%.
Max123
8
Years of Service
User Offline
Joined: 22nd Mar 2016
Location:
Posted: 26th Apr 2016 21:12
Thank you for the fast answer. This solved the problem
CJB
Valued Member
20
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Essex, UK
Posted: 26th Apr 2016 21:18 Edited at: 26th Apr 2016 21:19
You can see an example of this in action on my Fruit Smoothie WIP:



The splats use the standard particle system
V2 T1 (Mostly)
Phone Tap!
Uzmadesign
IBOL
Retired Moderator
20
Years of Service
User Offline
Joined: 30th Mar 2004
Location: @IBOL17
Posted: 28th Apr 2016 03:24
you're welcome.
i'd just like to add that my answer was a guess... i've still never used AGK2...BUT I WILL!

Login to post a reply

Server time is: 2024-11-25 07:42:53
Your offset time is: 2024-11-25 07:42:53