So as the title says, I can't seem to find a solution on how to make an enemy drop coin on it's position when destroyed?
Someone knows how?
Tnx in advance.
Have you tried this?
Enemy-> On destroyed
............Enemy -> Spawn Coin
I made this:
Enemy - On Destroyed
Enemy - Spawn Another Object
Then I get to choose the object, and set layer and image point.
When I just choose the object and leave layer and image point as default, nothing seems to happen.
I'm not sure how to use, or do I have to use layer and image point to spawn it correctly?
Develop games in your browser. Powerful, performant & highly capable.
Object - your coin.
Layer - layer where you want the coin to appear.
Image point - image point of Enemy object. "0" would be its origin image point.
It's a common method of spawning and it should work.
Try running your game in Debug Mode (Ctrl-F4), you'll be able to see what's going on. You'll see if the number of coins increases after an enemy is destroyed, where on the layout each coin is located etc.
It works. Tnx for your quick help!