You would setup a collision event on your player. When it hits something, you check to see what it was it hit, and process the results accordingly.
So if you collide with a spinning coin, remove the coin, add points to your score. Hit an enemy, detect if you’re Y is greater than it’s Y meaning you came down on top, if so remove the enemy, add your score. If you came in on either side or below, loose a life.
If you collide with terrain, then stop your movement and fall until you hit terrain under you.
If it were me, when I spawned my non-player game objects, I would set a property on them (or series of properties) like: object.isTerrain, object.isMovable, object.isEnemy, object.isCollectable, object.pointValue, object.canBeKilled (cover the spiked turtles that you couldn’t kill)
Then when your player collides with something, check the properties and do what you need to do. [import]uid: 19626 topic_id: 13115 reply_id: 48160[/import]