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

2023/1/23

How do you rotate an object to spawn in a different way?

zlm zlm

2023/1/23

#
Cause i have an arrow that i need to face the in the direction right but it went into the program facing left?
danpost danpost

2023/1/24

#
zlm wrote...
Cause i have an arrow that i need to face the in the direction right but it went into the program facing left?
Maybe adding something like the following might do the trick:
public void setRotation(int r)
{
    super.setRotation(r+180);
}
zlm zlm

2023/1/24

#
Yes, thank you so much!
You need to login to post a reply.