If I have one object called "mom" and "mom" spawns "baby". and supposing I have another object called "Dog". How do I turn the "baby" object into a "dog" object?
Not sure what you mean. You can destroy baby object, and create a new dog object in its place.
Develop games in your browser. Powerful, performant & highly capable.
But if I wanted that just a Specific spawn of baby turned into a dog, but not all of them. Imagine that object "mom" spawn "baby" every 1 second. If I wanted the "baby" number 7 turned into a "dog". What would I have to do
Also, Is it Possible to pick multiples ID. Like, If I would like to get multiples of 7. How would I write it in the action?
To turn a specific baby instance into a dog, you need to pick this baby instance first. There are many ways you can do the picking - by instance variable, position, IID, UID etc.
In your case you can add a spawn counter global variable. And also a boolean instance variable "convertToDog" to baby sprite.
When a new baby is spawned you increment the counter and if (counter%7)=0, then you set convertToDog=true for this baby instance. And then you will be able to pick it using "Is boolean set" event and replace with a dog.
thank you very much . will try that