Skip to main content

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

crt_future1

6
Posts
2
Topics
1
Following
A member registered Jul 28, 2024

Recent community posts

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

I've been playing around with the FSM for weapons. I've been having a good time adding reload animations, etc. I was wondering, can you use FSM and the particles command (or the custom particles command) to add shell casings ejecting for a gun?


I gave it a quick test. Added a shell casing png to the end of the weapons image set. It's named correctly. However, when I try to use it, it crashes. I assume I am doing something incorrect.


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 MUZZLEANDFLASH

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


Here's my quick little test. I admit I have no idea what I am doing ha ha 

That worked! Thanks for the help.

I gave it a try. It still crashes. It seems when the button is pressed, it fails to load the procedure and just crashes.

Ah, thanks for the reply. That got the button working, but once it is activated, it crashes when it tries to load the procedure.

procedure test

text "Hello World!"

end

cursor 1

image TestButton /Sprites/Ammo/buttontest.png

button TestButton 500 300 test

Any ideas?

I'm having a good time with this engine. However, I think I am using the procedure command wrong.

Trying to run the following in a terminal:

image Button /Sprites/Ammo/buttontest.png

button Button 500 300 test

procedure test

text "Hello World!"

end

I'm attempting to get a button to load a procedure, as per the manual. However, the button command won't load when I have the procedure code in the script -- the event simple freezes. When the procedure code is absent, the button loads, but when activated it of course doesn't load anything and crashes the game. Is the code for the procedure meant to be in a separate script file, or I am simply missing something? Help would be appreciated.