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

2014/11/19

SpaceInvaders

crazyfox1999 crazyfox1999

2014/11/19

#
hello I have to make a game for my informatik class and I choose a kind of spaceinvaders Now I have a scrolling world like danposts scrolling super world but when I schoot now it only is successfull when the actor doesn`t move out of the spawn area how can I fix that? I checked addObject(new shoot, getX(),getY() ,true) but if I try to compile I get the error method addObject in class greenfoot.World cannot be applied to given types; required: greenfoot.Actor,int,int; found:schoot;int,int,boolean; reason: actual and formal arguments can somebody helb me? ps: sorry for my poor englisch actually I am a german student and don`t speak englisch very often
danpost danpost

2014/11/19

#
Please show the code you have for the actor that is shooting (it is the main actor, correct? -- the one that stays in view at all times). Use the 'code' link below the reply box to insert code into your posts.
You need to login to post a reply.