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

2012/3/12

setRotation(getRotation) error

armoredarmada armoredarmada

2012/3/12

#
Im making a 2 player shooter, I put in the code EXACTLY as a guy in the video showed me but I get the "cannot find symbol -variable getRotation" error. heres the code to spawn the bullet: bullet ball = new bullet(); getWorld().addObject(ball, getX(), getY()); bullet.setRotation(getRotation);
Duta Duta

2012/3/12

#
Change "getRotation" to "getRotation()" You need the brackets because its a method rather than a variable (which is why its saying can't find the variable getRotation)
armoredarmada armoredarmada

2012/3/13

#
thank you! I had getRotation))); wondering why the heck isnt it working! Thank you alot!
You need to login to post a reply.