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

2019/6/13

I need this for assesment so... yeah. (How do i make it that when i shoot it doesnt go right and the way im facing?)

NathanDaSweetman NathanDaSweetman

2019/6/13

#
Hi im wondering how i get the bullets to go the way that my character is facing
Super_Hippo Super_Hippo

2019/6/13

#
Bullet b = new Bullet(); //create a new bullet
getWorld().addObject(b, getX(), getY()); //place the bullet at my location
b.setRotation(getRotation()); //set the bullets rotation to my rotation
NathanDaSweetman NathanDaSweetman

2019/6/18

#
ok thanks that worked came in clutch my guy ;)
You need to login to post a reply.