Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Announcements and Showcase
Player Particle System

laguniboy
Registered User
Quote
2022-12-18 04:20:13

@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.


laguniboy
Registered User
Quote
2022-12-18 05:21:51

@ 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.


Robbo
Guest
Quote
2022-12-19 00:19:12

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.


laguniboy
Registered User
Quote
2022-12-20 00:48:17

@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.


just_in_case
Moderator
Quote
2022-12-20 07:57:39

Sounds promising, thanks for sharing it with the community :)


Robbo
Guest
Quote
2022-12-20 08:21:01

see attached 'laguniboy':

https://jmp.sh/3iTjh86S


laguniboy
Registered User
Quote
2022-12-20 14:51:54

@Robo
Oh thank you JESUS Robo!!!!!!!! Again great job on the particle system.


guest
Guest
Quote
2022-12-21 09:56:13

What's up with your nickname bro? Shall we call you better Robo or Robbo? Just a minor question ;-)


Robbo
Guest
Quote
2022-12-22 04:55:31

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....


guest
Guest
Quote
2022-12-22 11:39:57

@Robbo, OK, good to know this better, thanks for the reply.
Appreciate your valuable CC contributions!


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Inter?ational" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact