I studied the source code and only realized that the partial effect is run from the file
/game/object/snowball.script at line 28 - particlefx.play("#points")
this show 25 or 50 points after break snowball
local function hitball(self)
if self.split then data.score = data.score + 50
else data.score = data.score + 25
end
particlefx.play("#points") -- this line
explode(self)
data.hits = data.hits + 1
if data.hits >= TOKEN_FREQ then
data.hits = 0
factory.create("#token-factory")
end
end
but I don’t understand how this effect is created, etc.
Maybe there is a simpler example somewhere. I want to use it in my project. But I can’t take a ready-made (((