Share to EffectHub.com

You can earn money or coins from your share:)

Tips: you can use Sparticle for uploading away3D effects.

Tips: you can download Sparticle for uploading effects.

Tips: The ActionScript editor is supporting Away3D, Starling, Dragonbones and Flex frameworks.

Tips: paste the web page URL then click button:)

EffectHub.com: Your Best Source for Gaming
Login    or

Particle pool - problem with reseting position

Hello,


I'm using Sparticles for my rpg game for android/ios and it's working great :) During the development i decided that i have to use particle pool to limit mamory allocations. So i've created object pool where i'm keeping once used particles and i'm reusing them when i have to display it again. It works fine for explosions or some other time limited obejcts.


The problem is when i want to reuse effects like meteor that have a tail that is following main object. When i'm adding it again on the screen then the part of the tail is appearing on the screen in it's previous location. I tried to use ParticleGroupAnimator.resetTime() function but it didn't helped.


My question: how can i reset position of the particles inside a particle group?

I've managed to find a workaround for this: I'm placing those effects under a ground and wait until tail is reaching main object. Then removing it from the screen. But it's not very effective :)

...

You must Sign up as a member of Effecthub to view the content.

2522 views    2 comments

You must Sign up as a member of Effecthub to join the conversation.

Krzysztof Drygas

A PHP Error was encountered

Severity: Notice

Message: Undefined index: HTTP_ACCEPT_LANGUAGE

Filename: helpers/time_helper.php

Line Number: 22

2015-03-02

Thank you so much for the replay. It's working great now.

Liao Cheng

A PHP Error was encountered

Severity: Notice

Message: Undefined index: HTTP_ACCEPT_LANGUAGE

Filename: helpers/time_helper.php

Line Number: 22

2015-01-31

Hello
You can set subMesh.animatorSubGeometry.previousTime to Number.NEGATIVE_INFINITY:
for each (var subMesh:SubMesh in mesh.subMeshes)
{
if(subMesh.animatorSubGeometry)
subMesh.animatorSubGeometry.previousTime = Number.NEGATIVE_INFINITY;
}

Krzysztof Drygas

A PHP Error was encountered

Severity: Notice

Message: Undefined index: HTTP_ACCEPT_LANGUAGE

Filename: helpers/time_helper.php

Line Number: 22

2014-12-28
>>Back to Sparticle group


Latest Posts


Sponsor


They are waiting for your help



Share

Join Effecthub.com


Or Login with Your Email Address:

Or Sign Up with Your Email Address:
This field must contain a valid email
Password should be at least 1 character

A PHP Error was encountered

Severity: Notice

Message: Undefined index: HTTP_ACCEPT_LANGUAGE

Filename: views/footer.php

Line Number: 6

A PHP Error was encountered

Severity: Notice

Message: Undefined index: HTTP_ACCEPT_LANGUAGE

Filename: controllers/topic.php

Line Number: 21

A PHP Error was encountered

Severity: Notice

Message: Undefined index: HTTP_ACCEPT_LANGUAGE

Filename: controllers/topic.php

Line Number: 85