Edamame Posted March 23, 2015 Share Posted March 23, 2015 Dose anyone know how to make a sine wave using phaser? I need one similar to http://phaser.io/examples/v2/filters/lightwave for a game I'm currently working on... I'm planning to use one of the physics engines to create a wavy moving hill. If anyone could give me a hand it would be awesome! Thanks. Link to comment Share on other sites More sharing options...
rich Posted March 23, 2015 Share Posted March 23, 2015 Here you go - Phaser has a built-in sin/cos generator you can use: http://phaser.io/sandbox/MzNQisvH Tilde and Edamame 2 Link to comment Share on other sites More sharing options...
Edamame Posted March 23, 2015 Author Share Posted March 23, 2015 Awesome!Thanks so much! Link to comment Share on other sites More sharing options...
Edamame Posted March 23, 2015 Author Share Posted March 23, 2015 Is there any way to export code form the sandbox to my desktop? Link to comment Share on other sites More sharing options...
rich Posted March 23, 2015 Share Posted March 23, 2015 Not yet, but it's only like 4 lines of code or so Link to comment Share on other sites More sharing options...
Edamame Posted March 24, 2015 Author Share Posted March 24, 2015 Is there any way to give the line a GLOWING effect? Link to comment Share on other sites More sharing options...
Recommended Posts