I have a condition
On Touch [Family]
I want to identify the type/name of the sprite was from that touch event, so I can do something if it was a specific type.
If the Family Instance Type that was touched was BOMB then do ABC
If the Family Instance Type that was touched was PRIZE then do XYZ
Give the family a variable, call it "type". Give instances different values such as "bomb" "prize".
Event: On Touch
subevent: Variable type = bomb
subevent: Variable type = prize
So if I have a "type" instance variable set for a family, it will inherit the value from the active instance? I tried this and I cant add 'type' to the Family because it already exists in the children...
Develop games in your browser. Powerful, performant & highly capable.
Ya, you need to remove it from the babies, because the family needs to give it to them. The babies are blocking you from adding it to the family, because they have the same name.