Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Is it possible to test whether an object is a treasure inside a command handler? Something like:

: if (is_treasure "_") {
   //Do something
}

Not 100% on this, but I think there is a way to do this using existing commands. Need my computer to check. Likely won't have an answer for a few days.

No problem. I've found a different way of doing what I was trying to achieve. Just needed a bit of creative thinking.