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

2014/4/7

Help with enemy code

GamesGrinder1998 GamesGrinder1998

2014/4/7

#
How do i make enemies appear in a certain position after one has been shot...i have 3 types of enemies and i want the code so that if one is shot, that same type of enemy will appear not anywhere but somewhere at the top of the screen...does anyone know the code for this please
danpost danpost

2014/4/7

#
Just use 'setLocation' and reset the number of times shot.
GamesGrinder1998 GamesGrinder1998

2014/4/9

#
danpost wrote...
Just use 'setLocation' and reset the number of times shot.
how would i write the code
danpost danpost

2014/4/9

#
I need a harder task; and you need to ask a harder question. However, I should probably have just written
Just use 'setLocation' instead of removing the shot actor and adding a new one.
You need to login to post a reply.