question

Game Editor comments and discussion.

question

Postby Spidy » Wed Aug 22, 2007 4:49 pm

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
User avatar
Spidy
 
Posts: 935
Joined: Tue Aug 14, 2007 1:28 pm
Location: http://www.inatonibai.com
Score: 38 Give a positive score

Postby 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.
motorollin
 
Posts: 54
Joined: Sun Aug 12, 2007 8:05 am
Score: 1 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest

cron