Page 1 of 1

question

PostPosted: Wed Aug 22, 2007 4:49 pm
by Spidy
Q1=
is there a tutorial about enemy throw fireball or something on my char

Q2=
how i make a bonus i mean my player get 20 coins and bonus will increase


Sorry bad eng

PostPosted: Wed Aug 22, 2007 5:25 pm
by motorollin
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.