This site requires JavaScript, please enable it in your browser!
Greenfoot back
BradH
BradH wrote ...

2012/10/14

Question

BradH BradH

2012/10/14

#
hey, I am making a game where the enemy shoot projectiles but i can not figure out how to get the enemy to shoot on its own without me pressing a key, thanks
tylers tylers

2012/10/14

#
what about:
int time = 0;
int rate = 500;

if(time==rate){
time = 0;
//do something
}else{
time ++;
}
BradH BradH

2012/10/15

#
Thanks alot
You need to login to post a reply.