Sry for such a late answer, DonaldDuck...
Well, first I saw it in a Breakout scenario and it interested
me. There's nothing difficult with this smoke actually...
You make it as a subclass of Actor and you have only two
private fields: image of GreenfootImage class and a fade.
Your fade will change as ball moves and you need to use
getRandomNumber in this case and have few methods like act() and
shrink() for instance, which will change the picture.
And then I create an object of a Smoke type in Ball class and call
it from makeSmoke method and then call it from my act()
method. And that's all I think. =)
Good luck!
2010/10/31
2010/11/15
2010/11/15