Page 1 of 1

CAAZ

PostPosted: Fri Jun 22, 2007 3:28 am
by jimmynewguy
I know your making a pokemon game so i found these 2 songs from the old one. There are when ur in the gym, and when ur fighting in the gym. i cant really use them but u can!!

PostPosted: Fri Jun 22, 2007 3:49 am
by Caaz Games
Cool, thanks! Speaking of my pokemon game, i need to know how to make an actor chose a random animation on a mouse button down event.

PostPosted: Fri Jun 22, 2007 2:36 pm
by pixelpoop
put this in your button down event.

int n;
n=rand(2);
if (n==0)place change animation code here
if (n==1)place other change animation code here

PostPosted: Fri Jun 22, 2007 2:44 pm
by Caaz Games
What if i have more, say about 5-7?

PostPosted: Fri Jun 22, 2007 2:59 pm
by d-soldier
int n;
n=rand(7);
if (n==0)place change animation code here
if (n==1)place other change animation code here
if (n==2)place other change animation code here
if (n==3)place other change animation code here
if (n==4)place other change animation code here
if (n==5)place other change animation code here
if (n==6)place other change animation code here

PostPosted: Fri Jun 22, 2007 4:49 pm
by Caaz Games
Oh, thats easy!

+ 1 for you!

PostPosted: Sat Jun 23, 2007 3:41 am
by d-soldier
Hope you gave one to pixelpoop too, all I did was cut'n'paste his code... :D