Madclaws Posted August 27, 2018 Share Posted August 27, 2018 Hi guys, I'm facing a problem.I have a leaderboard .The profile pic in those should be rounded masked.So I put mask for all profile pics.But when i scroll leaderboard ,masks are not moving with respect to their sprite.Please help guys.Its urgent Link to comment Share on other sites More sharing options...
samme Posted August 27, 2018 Share Posted August 27, 2018 Where did you put the masks? Link to comment Share on other sites More sharing options...
Madclaws Posted August 27, 2018 Author Share Posted August 27, 2018 @samme In sprite.mask. Link to comment Share on other sites More sharing options...
samme Posted August 27, 2018 Share Posted August 27, 2018 You can either add the masks as children of the pictures (addChild) or move the masks manually when scrolling. Madclaws 1 Link to comment Share on other sites More sharing options...
Madclaws Posted August 27, 2018 Author Share Posted August 27, 2018 @samme You mean ,I have to do first like this -> sprite.mask=_mask; then sprite.addChild(_mask); where "_mask " is the mask. Link to comment Share on other sites More sharing options...
Madclaws Posted August 27, 2018 Author Share Posted August 27, 2018 @samme Yeah it worked.Thanks a lot . Link to comment Share on other sites More sharing options...
Recommended Posts