Skip to main content

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

Môsi

A tiny game editor you can use on your phone or in your browser · By sg

Exit scripts not working

A topic by CheshireCreeper created Nov 18, 2022 Views: 225 Replies: 4
Viewing posts 1 to 2

So, after much trial and error, I have figured out that when a room's exit script is called...it just isn't called. Or something. I don't know, point is, the room's exit script isn't working anymore!!!!! Please help

Developer

Can you share the script you're using?

(1 edit)

{pick {sprites-named wallFull}}{transform-sprite wallEmpty}{/pick}

{pick {sprites-named blockFull}}{transform-sprite blockEmpty}{/pick}

It's supposed to help with screen transitions (because whenever I press the switch, the block flip to their "wall" sprites, and vice versa, but this doesn't seem to occur for sprites outside of that room with the switch, so they stay in their "wall" forms even if the switch has been flipped).

Not even the simple "Hello World" script would play though.

Developer

Oh weird! I just tried adding a simple "hello" as an exit script, and it plays once I exit the old room and enter the new one...

Okay so now that I went back to check now the "hello" script *is* working when I leave the exit...must have been a random fluke occurrence. Weird.