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
cloudster101
wrote ...
2014/1/20
setLocation with doubles
cloudster101
2014/1/20
#
Hello, Does anybody know if it is possible to use the setLocation function with double,double instead of int,int. Thanks, this would help a lot, cloudster101
bourne
2014/1/20
#
You could cast the doubles to ints (which gives the int portion of the value): setLocation((int)doubleX, (int)doubleY);
cloudster101
2014/1/20
#
Thanks that worked!
You need to login to post a reply.
X