Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags
(+1)

Hello!
MUZZLEANDFLASH should be MUZZLEFLASH
And you also need a space after the first five numbers in the 'PARTICLES' action:
frame 5 0.02 0 0 0 PARTICLES 25 1,1,0,0,1 0,0,1

Thanks for getting back to me. I changed the muzzle flash command to the correct one. However, I pasted the particles code you wrote into the FSM for the weapon attack and it still crashed. I am going to assume it's something I have done incorrectly. Everything works when I take out the particles command. Here's the code:

image Handgun 0 28

sound HandgunFire

sound HandgunReload

sound Handgunshell

sound Handgunmagcheck

state IDLE NONE 0

frame 1 0.18 0 0 0 NONE

frame 1 0.18 0 0 0 READY

state ATTACK IDLE 0

frame 2 0.01 0 0 0 NONE

frame 3 0.02 0 0 0 SOUNDANDATTACK 0

frame 4 0.02 0 0 0 MUZZLEFLASH

frame 5 0.02 0 0 0 PARTICLES 25 1,1,0,0,1 0,0,1

frame 6 0.02 0 0 0 READY

frame 7 0.01 0 0 0 NONE

frame 1 0.01 0 0 0 NONE