Create various objects, coins by killing enemy

Hello, sorry my English. I’m using Google translator, I’m Brazilian.

Would you like to know how I create several “coin” objects at the same time when defeating an enemy or breaking a box?

I know how to create “an object” in the specific position when defeating my enemies, but I would like to create 3,4,5 or more coins at the same time by defeating it and not just one.

How is the code for that?

========================
Object to create:
coin

X Position:
box X()

Y Position:
box.Y ()

Layer:
“scenery”

======================

This is my code so far.

Look this capture maybe help, this is for a chest in my game but can be applied to enemies too, is the repeat part the important thing
create-coins

1 Like