Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Dynamic Battle Background

A topic by brencooks created Aug 20, 2023 Views: 132 Replies: 4
Viewing posts 1 to 2

Typically the battle background changes if you engage in a fight in a field, a ship, a dungeon, etc.   Is there a way to have the battle system call up a different background depending on certain criteria being met?  What would you suggest be the trigger for a different background being pulled up?

Pherhaps one could make a global variable for the background sprite/image index and change the sprite/image index based on the presence of an enemy type? 

Not a bad idea! I'm still kind of noob at coding, so I'll have to figure this one out. Do you have any links to resources I could possibly use to guide me?

For more complex backgrounds:

1: https://www.reddit.com/r/gamemaker/comments/e9tq81/looking_to_create_rpg_battle_background_like/?rdt=53881

2:
https://forum.gamemaker.io/index.php?threads/earthbound-battle-background-sprites.99273/

For more simple backgrounds:

1: https://manual.gamemaker.io/monthly/en/GameMaker_Language/GML_Overview/Variables/Global_Variables.htm

2: https://www.youtube.com/watch?v=imIDu84jIF0

Thank you for that!  I was looking more to on coding resources on how to code the background scene change, depending on where the character starts the battle.

I do appreciate the effort you've put in for finding this.  It's kinda been a self-help group over here for the last little bit, lol.