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
SWAG
wrote ...
2013/6/1
Transparency
1
2
3
4
danpost
2013/6/3
#
In fact, you should probably test it using 'null' first. When you get it working, then you can adjust it to the second code-set, if you wanted (although, using 'null' should work just fine).
Solringolt
2013/6/3
#
Ok with 'null' it works fine. Can you show me how the getAlphaAtHead method should look like?
danpost
2013/6/3
#
Just switch the way the x and y values work. In fact, you only need change the first two statements to get the proper point to look at:
int playerX = getX()+getImage().getWidth()/2; int playerY = getY();
You need to login to post a reply.
1
2
3
4
X