tommyfok Posted February 26, 2014 Share Posted February 26, 2014 as you can see, when the bird is flying forward, the ground should be moving backward.but I can't make the bird collide with the moving ground.ground1 = game.add.tileSprite(0,wsize.y-112,wsize.x,112,'ground');ground1.body.setSize(wsize.x,112,0,0);ground1.body.immovable = true;gg = game.add.sprite(0,wsize.y-112,'ground');gg.body.setSize(wsize.x,112,0,0);gg.body.immovable = true;//ground1 cannot collide with other objects while gg can. tommyfok 1 Link to comment Share on other sites More sharing options...
tommyfok Posted March 1, 2014 Author Share Posted March 1, 2014 need help... Link to comment Share on other sites More sharing options...
jflowers45 Posted March 1, 2014 Share Posted March 1, 2014 theres a whole flappy bird tutorial here that I assume will have what you're looking for http://www.html5gamedevs.com/topic/4046-tutorial-how-to-make-a-flappy-bird-in-html5-with-phaser/ Link to comment Share on other sites More sharing options...
Recommended Posts