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

2013/6/1

Transparency

1
2
3
4
danpost 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 Solringolt

2013/6/3

#
Ok with 'null' it works fine. Can you show me how the getAlphaAtHead method should look like?
danpost 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