Ambiera ForumDiscussions, Help and Support. |
|
[ 1 2 ] Page 2 of 2 |
|
|||||
|
@Robbo I'm using multiple scenes and restart scene button. I trigger the particle system only once during the scene, but when I exit the scene to another scene the frame rate drops to 0. Or if I restart the current scene the particles disappear and replaces with another scene object. |
||||
|
@ Robbo Hello Robo I created a small demo room example of the glitch. When the character leaves room1 through the door you will press the "start level button" in scene 2. In scene 2 after the rain drops, if you press "restart scene button" and "start" the rain disappears and sometimes replace the object with another especially if you try restarting a second time. Here is the Coppercube file link. P.S.The file is safe. |
||||
|
I found that you were running multiple copies of the Action causing frame rate drops. Each time you change scenes you started another version of the Action while it was already running. Only run the particle system when 'startWeather' variable is equal to true so add that in before you run the Particle System from anywhere in your game. If it is running then it wont run again while its still running. Also you need to stop the Action in Room1 by setting curParticles = 0; - add this into the javascript box when going into Room1 to stop the Action as strangely CopperCube still runs Actions created in the previous scenes in other scenes so the bug here is CopperCube actually, not my code. You need to stop and restart the Action I found as wont run properly otherwise. So stop the particles as above in Room1 then in Room2 restarting the scene (Room2) will restart the Action again if you have added in the Particle System on draw before doing something in Room2. Also dont have more than say 400-500 particles for best performance - I would stick with 400 and reduce the maxDistance to 70 to look better. |
||||
|
@Robo Oh, i see. If you have time to spare, if you still have the demo file I sent is it possible for you to alter the correction? I'm not very experienced in these terms. The feature is amazing I'm just hung up on this part. |
||||
|
Sounds promising, thanks for sharing it with the community :) |
||||
|
see attached 'laguniboy': https://jmp.sh/3iTjh86S |
||||
|
@Robo Oh thank you JESUS Robo!!!!!!!! Again great job on the particle system. |
||||
|
What's up with your nickname bro? Shall we call you better Robo or Robbo? Just a minor question ;-) |
||||
|
Nothing up - just that some of my friends pronounce the o's wrong in Robo - like robot instead of 'Rob o' - thus the 2 b's to make it clear.... |
||||
|
@Robbo, OK, good to know this better, thanks for the reply. Appreciate your valuable CC contributions! |
[ 1 2 ] Page 2 of 2 |
|