Hi!
I have a global variable storing what object the player might be carrying.
When the layout changes, I need to recreate that carried object in the new layout.
I'm trying to do this with families so that I wouldn't have to hard code each object separately.
But is there a way of checking if a string variable matches one of the many objectTypeNames present in a family?
I made a simple test trying it out, but this event fails:
| Global string carriedObject‎ = "Sprite2"
+ System: On start of layout
----+ System: carriedObject = Family1.ObjectTypeName
--------+ System: Pick Family1 where Family1.ObjectTypeName = "Sprite2"
---------> Family1: Destroy