Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

RPG in a Box

Bring your stories and ideas to life! · By Justin Arnold

[0.3.6.11] On Load Script issue

A topic by lectronice created Dec 13, 2016 Views: 103 Replies: 3
Viewing posts 1 to 4

Hi!

I think I've found a bug which took me quite a while to understand. Apparently, the On Load Script only works for the first loaded map. I have no problem using a On Load Script on any map if that map is the first one visited in the game. But if the player go to a second map, the On Load Script seems to be ignored. Also, I don't know if it's related or not, but starting a map on a tile with a linked script doesn't trigger that script, you need to move to another tile then come back to trigger it.

Hello! I can't seem to recreate the issue of the On Load script not working after the first loaded map. Would you mind sending me an example of this scenario? There may be some other things involved that I am missing.

I thought the second issue would have an easy solution (check the starting tile when a map is loaded and trigger that script if it exists), however after I made the change I realized it could cause an infinite loop if the starting tile has a script to load the previous map - the game would quickly switch back and forth between each map. I suppose you could use different tiles for the starting tile and the one to trigger the map change. Is this auto-triggering the starting tile's script something that would be beneficial, or was it mainly just as alternative to the On Load script?

File sent :)

And about the auto triggering of the starting tile's script, yes, it was mostly an alternative, I had no other use for it.