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 / fireworks particles becom particle rain in time

Author
Message
Jo Bach
9
Years of Service
User Offline
Joined: 22nd Dec 2014
Location:
Posted: 22nd Dec 2014 12:28
Hi all,

I made a code like firework.

The first explotions looks good.

After around 10 seconds the fireworks explotion begin to fall faster and faster.

Anyone an idea what is going wrong?

Should I delete the particles and then rebuild it in the main loop?

Here is the code.



Greetings,

Jo
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 22nd Dec 2014 13:22
I think you need to start by using AddParticlesForce(1,1,4,0,15) only once before the do-loop. You are adding to the "gravity" every time the user fires another one off.
Jo Bach
9
Years of Service
User Offline
Joined: 22nd Dec 2014
Location:
Posted: 22nd Dec 2014 15:16
Thank you Baxslash,

I moved this in front of the loop and now it works fine.

Login to post a reply

Server time is: 2024-11-25 14:36:03
Your offset time is: 2024-11-25 14:36:03