How to make sure the coin doesn't spawn on same location?

justinodunnjustinodunn Member, PRO Posts: 226

I have a coin that spawns at 3 specific y positions the code that goes like this.

When character collides with coin, destroy coin and spawn a new coin at y: (random(0,3)*142)+55

How to make sure the coin doesn't spawn on the same y location? Thanks!

Comments

Sign In or Register to comment.