Strato Posted February 25, 2014 Share Posted February 25, 2014 Hi,When I say "tetrominoes" I mean tetris pieces.I would like to be able to create arbitrary (many shapes) tetrominoes on the fly, based on a set of square sprites.IE: I have a sprite for green square, and I want to create a... sprite? which is made a one line with three square, one line with a square on left and one on right, and one line with just a square on the left.Also I need those to be draggable on a grid.I skimmed the samples and documentation and couldn't find a proper to do this. Should I use a sprite group and manage drag'n drop by myself (could be tedious)? Link to comment Share on other sites More sharing options...
Zaidar Posted February 25, 2014 Share Posted February 25, 2014 I think the best idea is to make a group and then on drag of a chidlren sprite, move his siblings:http://www.html5gamedevs.com/topic/2336-input-andor-drag-on-a-group/?p=15608 Link to comment Share on other sites More sharing options...
Recommended Posts