Particle Pre-Roll?

Get help using Construct 2

Post » Thu Oct 18, 2012 6:08 pm

I have particles running constantly on my layout. However, when the layout loads, it takes a second for the particles to start.
Is there a way to pre-load the particles so they're already running when the layout starts?
B
19
S
3
G
2
Posts: 212
Reputation: 4,011

Post » Thu Oct 18, 2012 6:23 pm

Interesting conundrum! I can't think of a good way to do this, apart from perhaps setting an extremely high rate and speed for an extremely short time at the very start of the layout.
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » Mon Jan 25, 2016 10:45 am

Does anybody knows a simpler solution than the high rate/speed for a short period of time?

I'll investigate this as well, but something simpler would be nice ^^
B
4
Posts: 7
Reputation: 214

Post » Mon Jan 25, 2016 7:40 pm

kenhes wrote:I have particles running constantly on my layout. However, when the layout loads, it takes a second for the particles to start.
Is there a way to pre-load the particles so they're already running when the layout starts?


I never use particles plugin in my projects, I prefer to do manually... but you can "cheat" by making multiple sprite of the particles when the layout start.

or maybe setting the different variable of the plugin at the start...
B
11
S
3
Posts: 278
Reputation: 2,068

Post » Tue Jan 26, 2016 6:28 pm

You can use the asJSON expression.

Add an textbox and a event like this:

Time=1.0 seconds
--- textbox: set text to particles.asjson

The copy the text in the textbox into your favorite text editor and replace all the " with '. Then add " to the beginning and end of it, and select it all and copy it.

Now in your game you can remove the textbox and that event and add a event:

on start of layout
--- particles: load from json ...

Just paste the copied text instead of ... and voila, it starts pre-running.
B
79
S
24
G
54
Posts: 4,738
Reputation: 40,739


Return to How do I....?

Who is online

Users browsing this forum: Braus, spcsmrf and 14 guests