Skip to main content

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

Error on updating code with particle effect emitters

A topic by PsychoSeel created 26 days ago Views: 71 Replies: 1
Viewing posts 1 to 2

Whenever I change an event that's been emitting particles like:

    part_particles_burst(global.ps_vfx, x, bbox_top + 315, PE_MiningDrill_Smoke);
I'm getting error like this
 called from obj_BOSS_MiningDrill:Step_0 [line 36, col 60]
[GMLive][30-05-2026 15:56:40][ERROR] Runtime error: [error] `instance#ref instance 103824(obj_BOSS_MiningDrill)` (instance of obj_BOSS_MiningDrill) does not have a variable `PE_MiningDrill_Smoke`.
This error is persistent, updating a code with similar code %100 gives error. 
Developer

You could do a live_constant_add in obj_gmlive’s Create event, like so

live_constant_add("PE_MiningDrill_Smoke", PE_MiningDrill_Smoke);

I’ll need to check if asset_ functions work for particle systems in latest GM.