This site requires JavaScript, please enable it in your browser!
Greenfoot back
lomza_t

lomza_t

WSIiZ, Zhovkva, Ukraine

lomza_t's scenarios

play kentpong-simple

lomza_t's collections

This user has no collections

Recent Comments

lomza_t

2010/11/15

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!