Skip to main content

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

Changing bg music and adjusting amount of damange for hazard blocks

A topic by HorsesEatJellyfish created Jul 10, 2024 Views: 190 Replies: 2
Viewing posts 1 to 3

Hi, everyone. I'm making an FPS/platformer using Easy FPS Editor and I would like to thank JessicoChan and the current dev who took over the project  (if I understood things right). I have a couple of questions. 


1. Is there any way to make the background music change when you enter a certain area?

2. In my game, I have hazard blocks with lava tiles and I want the player to die instantly on contact with a hazard block, rather than taking 1 damage point at a time. Is there any way to set the damage for hazard blocks to 200, for example, so that the player will instantly die when falling down in the lava?

3. Is there any way, except changing the movement speed of enemies, to prevent enemies of the same type to sort of stack up? Like creating a collision box so that they aren't stacked on top of each other? Or is having several iterations of the same enemies/sprites but with slightly different walking speed the best workaraound?


Thanks a bunch and have a nice day. :)

1. "map return" does that thing. Read manual first.

2. Set triggers and attach a script for them that will kill player instantly.

3. No,

(2 edits)

Thank you, KeshaFilm! I suppose I'll have to stick to my anti-enemy stacking workaround. I'll check the manual more thoroughly about "map return", but I have to say that I find it hard to figure out, from the info in the manual, how to use scripts to make hazard blocks kill the player instantly. If anyone has the patience to explain, I'd be very grateful.

EDIT:
In case anyone else would have problems trying to do the same thing, I managed to get it working using triggers, like Kesha suggested, by putting using triggers instead of hazard blocks. I wrote the following in the script file:

player hurt 200

map quickreturn