Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Displaying event sprites beneath Map-Layer 3

I found a similar topic on this, but a definite conclusion was never drawn on whether or not this is possible, and I didn't want to dig up a 6 month old post!

Is there a way to have an event's sprite appear below the 3rd layer and above the 2nd layer on the map? I'm trying to have an animated event of fish swimming in water, but I'd like for the fish to appear beneath any objects floating on the water, such as lillypads. If I have the water as layer 1 and the lillypad as layer 3, that leaves layer 2 free for the fish event's sprite, but the trouble is I don't know how to edit the spriteset_map script to allow me to set the sprite so it appears between layers 1 and 3 of the map.

I also looked into using a custom tilemap script as a solution, but doing so seems to slow down the game quite a bit. Does anyone know another way to accomplish this?

I would appreciate any help/advice in this matter. Thanks!
 

khmp

Sponsor

I don't know about that. However might I offer a different solution of just changing the opacity to something around 100 for the event. And then make it's movement so it goes through tiles.
 
Great idea, but it still seems weird when the fish appear ghostly overtop of lillypads and bridges. But thanks for thinking outside the box :)

Would it be possible to use bush_depth on the lillypad to make it completely cover an object, and then have it so it only does so to the fish sprites?
 

khmp

Sponsor

You can set the priority of the lilypad to anything higher than 2 and it will overlap the event. I'd imagine the trick lies in making the fish look like its moving randomly but keep it in the water. :D
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top