Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

"Test Game" fails after making a State for a weapon

A topic by Obelisk Of Fate created Jul 07, 2024 Views: 121 Replies: 1
Viewing posts 1 to 2

My problem: I wanted to add an alt attack for a weapon. Made a .states file for said weapon, with the name matching the name in Weapons. dat. After making the states file, the program could  not run its Test Game or Test Current Map. After deleting said states file, it works like normal. Is my code for the States wrong?

Code:

image Melee Kick 0 8

sound Melee KickFire

state IDLE NONE 0

frame 1 0.25 0 0 0 NONE

frame 1 0.25 0 0 0 READY

state ATTACK IDLE 0

frame 2 0.25 0 0 0 NONE

frame 3 0.25 0 0 0 SOUNDANDATTACK 0

frame 4 0.25 0 0 0 READY

frame 5 0.25 0 0 0 NONE

frame 6 0.25 0 0 0 NONE

frame 7 0.25 0 0 0 NONE

frame 1 1 0 0 0 NONE

state ALTATTACK IDLE 0

frame 1 0.25 0 0 0 NONE

frame 8 0.25 0 0 0 SOUNDANDATTACK 0

frame 2 0.25 0 0 0 READY

frame 7 1 0 0 0 NONE


Thank you

Ok just figured it out. There is a space in my weapon name. After renaming, no more problem!