codevinsky Posted May 2, 2014 Share Posted May 2, 2014 If you're not familiar with the presentation, it's vital that you go watch it: Now that you've done that, this plugin currently allows you to easily implement the following effects:Camera ShakeScreen FlashObject TrailsOver ScalingMouse StretchJelly Effect DEMO SOURCE I've made a pull request and I hope rich will merge it into the official repo. kass, Mike, abshinri and 8 others 11 Link to comment Share on other sites More sharing options...
Hsaka Posted May 2, 2014 Share Posted May 2, 2014 Excellent stuff! Hipe 1 Link to comment Share on other sites More sharing options...
jpdev Posted May 2, 2014 Share Posted May 2, 2014 nicely done! Link to comment Share on other sites More sharing options...
george Posted May 2, 2014 Share Posted May 2, 2014 Nice! Good job! Link to comment Share on other sites More sharing options...
Mike Posted May 2, 2014 Share Posted May 2, 2014 I watched a good time ago and now seeing it implemented in phaser is awesome. Link to comment Share on other sites More sharing options...
Hsaka Posted May 3, 2014 Share Posted May 3, 2014 Hey, I tried the plugin but I'm seeing a strange artifact with the trail effect: This only happens in WebGL mode. Link to comment Share on other sites More sharing options...
codevinsky Posted May 3, 2014 Author Share Posted May 3, 2014 Haha... Man... That -is- weird. Did you just rip the js code from the herokuapp site? Link to comment Share on other sites More sharing options...
Hsaka Posted May 3, 2014 Share Posted May 3, 2014 I took that screenshot while playing your demo on heroku. In my own game, if I force canvas mode it works, but I see the outlines of the individual triangles that make up the trail Link to comment Share on other sites More sharing options...
codevinsky Posted May 3, 2014 Author Share Posted May 3, 2014 huh... what browser are you running? Link to comment Share on other sites More sharing options...
Hsaka Posted May 3, 2014 Share Posted May 3, 2014 Chrome 34. The same thing happens in firefox as well, so I guess it's a weird graphics card issue. Link to comment Share on other sites More sharing options...
presidenten Posted May 3, 2014 Share Posted May 3, 2014 Wow! Great work man! Link to comment Share on other sites More sharing options...
alikoo Posted May 6, 2014 Share Posted May 6, 2014 great job !!! Link to comment Share on other sites More sharing options...
presidenten Posted May 7, 2014 Share Posted May 7, 2014 There are some issues though. In many of the functions you accept arguments, but then you ignore them. Phaser.Plugin.Juicy.ScreenFlash = function(game, color) { color = color || 'white'; var bmd = game.add.bitmapData(game.width, game.height); bmd.ctx.fillStyle = 'white'; Easy peasy to fix though, but it might be nice to get it fixed before a merge of the pull request. Link to comment Share on other sites More sharing options...
gingerbeardman Posted March 19, 2015 Share Posted March 19, 2015 I can't get screen flash to work in 2.2.2 Anybody? Link to comment Share on other sites More sharing options...
totallybueno Posted May 25, 2015 Share Posted May 25, 2015 gingerbeardman, I have it working perfectly with 2.3.0 gingerbeardman 1 Link to comment Share on other sites More sharing options...
gingerbeardman Posted May 26, 2015 Share Posted May 26, 2015 gingerbeardman, I have it working perfectly with 2.3.0Can you please post an example? Thanks Link to comment Share on other sites More sharing options...
fariazz Posted May 26, 2015 Share Posted May 26, 2015 Really cool!! Link to comment Share on other sites More sharing options...
totallybueno Posted May 26, 2015 Share Posted May 26, 2015 Can you please post an example?Thanks Well, pretty simple code, I just created this two variablesthis.juicy=this.game.plugins.add(new Phaser.Plugin.Juicy(this));this.screenFlash=this.juicy.createScreenFlash();this.add.existing(this.screenFlash);and then I used them with this codethis.juicy.shake();andthis.screenFlash.flash();I didn´t try anything else but these two things are working even on mobile Link to comment Share on other sites More sharing options...
gingerbeardman Posted May 26, 2015 Share Posted May 26, 2015 OK, thanks! I'll try it. Link to comment Share on other sites More sharing options...
totallybueno Posted May 26, 2015 Share Posted May 26, 2015 Let me know if you have any problem Link to comment Share on other sites More sharing options...
codevinsky Posted May 27, 2015 Author Share Posted May 27, 2015 If there are fixes that need to be made, the code now lives in the Phaser Plugins repo: https://github.com/photonstorm/phaser-plugins phuurup 1 Link to comment Share on other sites More sharing options...
Shahmeer Khalid Posted December 8, 2016 Share Posted December 8, 2016 Can anyone please tell me that how can i use ball trial effect in my game?? Link to comment Share on other sites More sharing options...
swastik Posted September 7, 2017 Share Posted September 7, 2017 Nice effects! Link to comment Share on other sites More sharing options...
swastik Posted September 7, 2017 Share Posted September 7, 2017 On 26/05/2015 at 3:43 PM, totallybueno said: Let me know if you have any problem can anyone help me with Trail? how do I add trail to any sprite? Link to comment Share on other sites More sharing options...
Recommended Posts