Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs

Môsi

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

Clearing sprites from co-ordinates.

A topic by Catbox created 9 days ago Views: 22 Replies: 3
Viewing posts 1 to 2

Is there a way to specify which co-ordinates {remove-sprite} removes from?

For example, I want to reset a puzzle whenever you leave or enter a room. I can use the enter dialog to place a series of obstacles, but I can't use the exit dialog to remove sprites from places I don't want them to be, as remove sprite seems to be tied to sprite push scripts.

Has anyone found a way to do this?

Developer

I just added a slightly experimental {pick} script to the github version of môsi (https://zenzoa.github.io/mosi/). So you can do something like this:

{pick {sprite-at x y}}
{remove-sprite}
{/pick}

More info on the wiki: https://github.com/zenzoa/mosi/wiki/Scripts#selecting-sprites

Hi sg! That's amazing thank you!

I really confused myself working today when I saw it on the wiki and tried to code with it for two hours on a version of Mosi that doesn't have that code yet. :P

Developer

I'll update it on itch.io once I fix a few more things!