A simple way as follows. You can create smarter particle effects through similar methods, but usually this one will do.
Bullet -> Collision with wall -> Script Editor
- Code: Select all
int i;
for(i=0;i<10;i++)
{
CreateActor("fx", "fx_anim", "(none)", "(none)", 0, 0, false);
}
fx -> Create Actor -> Script Editor
- Code: Select all
xvelocity = rand(5)-rand(5);
yvelocity = rand(5)-rand(5);
You'll want to have the fx destroyed after a while, so you can use a timer or animation finish for that.