Skip to main content

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

Easy FPS Editor CE v1.10.5

A free tool for creating oldschool FPS games · By Clark

QUESTION: Defining How Long A State Should Happen

A topic by Francois3D created Jul 25, 2025 Views: 842 Replies: 4
Viewing posts 1 to 4
(1 edit)

So I've been working on my game in Unreal but wanted to make my full prototype in EFPSE. One problem I currently have is that when I define my character to FLEE after being hurt or attacking, they tend to FLEE for a random period of time. I need them to only FLEE for a second and then go back to CHASE. Does anyone have any experience in this and what is the fix to make sure a state only lasts but so long as defined?

(-1)

Show your FSM.

(1 edit)

image common_ 0 25

state IDLE NONE 0

frameset 0 0 0.5 0 0 0 NONE

frame 1 0.5 0 0 0 READY

state SEE CHASE 0

frameset 2 4 0.1 0 0 0 NONE

frame 5 0.1 0 0 0 READY

state CHASE NONE 0

frameset 6 8 0.125 0 0 0 NONE

frame 9 0.125 0 0 0 READY

state ATTACK FLEE 0

frame 10 0.1 0 0 0 NONE

frame 11 0.1 0 0 0 ATTACK

frame 12 0.1 0 0 0 NONE

frame 13 0.1 0 0 0 READY

state FLEE CHASE 0

frameset 18 20 0.1 0 0 0 NONE

frame 21 0.1 0 0 0 READY

state HURT FLEE 0

frameset 14 16 0.1 0 0 0 NONE

frame 17 0.1 0 0 0 READY

state DEATH DEAD 0

frameset 22 25 0.11 0 0 0 READY

state DEAD NONE 0

frame 25 1 0 0 0 NONE


The problem is when they go to flee from being hurt, the enter chase and start ping ponging around and not even at the player. It looks like it trying to flee and chase at the same time, which isn't desired.

(1 edit) (-1)

> IMPORTANT

The first line of any given state should always be NONE as this line is simply ignored due to am ongoing bug. By using NONE on the first line you cab circumvent this bug allowing the rest of your states to function as expected.

In your case you've used frameset instead of single frame, which isn't correct.

(2 edits)

I messed with it a bit before sharing. I did change the last DEATH state to ready even though I know that's not correct. I was seeing what it would do and forgot to change it back before posting. I was just testing what I didn't try before posting. As for the frameset, I was told this could also work and seemed more streamlined so I had no inclination that would be an issue. I'll do it frame by frame and make sure all first frames are NONE and see if it persists.