Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

CUSTOMPARTICLES limit

A topic by yugi yanagui created Jun 18, 2024 Views: 178 Replies: 2
Viewing posts 1 to 2

Is there a limit to the number of custom particles present?

I used the FSM from the EFPSE wiki as a reference to create decorations that generate Environment Particles. The decoration name is "Env" and the custom particle name is "Custom0.png". The code works fine and continues to scatter particles over an area of roughly 5*5*5.

FSM:

image Env 0 3
image particles 0 0
state IDLE NONE 0
frame 0 0.025 0 0 0 NONE
frame 0 0.025 0 0 0 SETVAR p1 RANDOM(-200,200)
frame 0 0.025 0 0 0 SETVAR p2 RANDOM(0,200)
frame 0 0.025 0 0 0 SETVAR p3 RANDOM(-200,200)
frame 0 0.025 0 0 0 CUSTOMPARTICLE 0 6000 $p1,$p2,$p3 0.005,0.003,0.001 0.08 0.01
frame 0 0.025 0 0 0 SETVAR p4 RANDOM(-200,200)
frame 0 0.025 0 0 0 SETVAR p5 RANDOM(0,200)
frame 0 0.025 0 0 0 SETVAR p6 RANDOM(-200,200)
frame 0 0.025 0 0 0 CUSTOMPARTICLE 0 6000 $p4,$p5,$p6 0.005,0.003,0.001 0.08 0.01
frame 0 0.025 0 0 0 SETVAR p7 RANDOM(-200,200)
frame 0 0.025 0 0 0 SETVAR p8 RANDOM(0,200)
frame 0 0.025 0 0 0 SETVAR p9 RANDOM(-200,200)
frame 0 0.025 0 0 0 CUSTOMPARTICLE 0 6000 $p7,$p8,$p9 0.005,0.003,0.001 0.08 0.01
frame 0 0.025 0 0 0 SETVAR p10 RANDOM(-200,200)
frame 0 0.025 0 0 0 SETVAR p11 RANDOM(0,200)
frame 0 0.025 0 0 0 SETVAR p12 RANDOM(-200,200)
frame 0 0.025 0 0 0 CUSTOMPARTICLE 0 6000 $p10,$p11,$p12 0.005,0.003,0.001 0.08 0.01
frame 0 0.025 0 0 0 SETVAR p13 RANDOM(-200,200)
frame 0 0.025 0 0 0 SETVAR p14 RANDOM(0,200)
frame 0 0.025 0 0 0 SETVAR p15 RANDOM(-200,200)
frame 0 0.025 0 0 0 CUSTOMPARTICLE 0 6000 $p10,$p11,$p12 0.005,0.003,0.001 0.08 0.01
frame 0 0.025 0 0 0 READY
state DEATH DEAD 0
frame 1 0.166 0 0 0 NONE
frame 2 0.166 0 0 0 NONE
frame 3 0.166 0 0 0 NONE
state DEAD NONE 0
frame 3 0.25 0 0 0 NONE
frame 3 0.25 0 0 0 NONE

(What a terrible repetition)


So far there is no problem with this decoration, but If you place an unusual number of these decorations in the same room, the more you place, the shorter the particle's life time will be (it will disappear quickly). I am thinking that there is a cap on the number of custom particles on the map, so particles that have exceeded the cap may be disappearing. Or my knowledge of FSM sucks.

Developer

Custom particles share the same limit as normal particles. If you spawn more than the limit, some of them will be deleted.
This is configurable in the in-game settings menu, or by editing the config.ini file

Thank you for your response! I had completely overlooked the in-game option.