This site requires JavaScript, please enable it in your browser!
Greenfoot
Username
Password
Remember Me?
Sign Up, Lost Password
Activity
About
Documentation
Download
Discuss
Scenarios
zlm
wrote ...
2023/1/23
How do you rotate an object to spawn in a different way?
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
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
2023/1/24
#
Yes, thank you so much!
You need to login to post a reply.
X