by motorollin » Wed Aug 22, 2007 5:25 pm
1.
Make your enemy create a "fireball" actor. The fireball actor has an on draw event to make it move in whichever direction you want (e.g. on draw -> script -> x+=1 )
2.
Make a global variable called "coins". When you start your game set coins=0. When your player collides with a coin, set coins++ (add one to the number of coins collected). Then when coins=20, do whatever you want to happen once 20 coins have been collected and then set coins back to 0 if you want to start the coin counter again.