So basically, I decided to give the killer in my horror game a flamethrower. The mechanic is the fire just goes forward. It's not too hard to dodge and eventually the killer gets frustrated and just ditches the flamethrower and runs after you himself. Then if you manage to get away from him, he gets his flamethrower back.
For this I use the "turn towards player" option in move route, follower by a bunch of "1 step forward"'s.
The problem is I don't think the flamethrower is all that effective with just the 4 directions and I figured adding diagonal movement for the fire would make it a lot scarier.
I know there is an option to have an event move diagonally in the "set move route" option, but the problem is how does the event detect if the player is diagonal to it?
Here's a video example of how the flamethrower works so far.
If you're wondering how the fire is spawned, I'm using Kal's EventSpawn 1.2 script.
The fire spawns in, turns to the player and moves forward a bunch of times.
How would I go about making it detect if the player is diagonal to it?
Thank you.
For this I use the "turn towards player" option in move route, follower by a bunch of "1 step forward"'s.
The problem is I don't think the flamethrower is all that effective with just the 4 directions and I figured adding diagonal movement for the fire would make it a lot scarier.
I know there is an option to have an event move diagonally in the "set move route" option, but the problem is how does the event detect if the player is diagonal to it?
Here's a video example of how the flamethrower works so far.
If you're wondering how the fire is spawned, I'm using Kal's EventSpawn 1.2 script.
The fire spawns in, turns to the player and moves forward a bunch of times.
How would I go about making it detect if the player is diagonal to it?
Thank you.