Growler Posted December 19, 2018 Share Posted December 19, 2018 How can I glow me.Entity in MelonJS 5.1? For example, if I wanted to glow an entity on mouseover. @Parasyte @obiot Quote Link to comment Share on other sites More sharing options...
Growler Posted December 20, 2018 Author Share Posted December 20, 2018 @obiot @Parasyte any thoughts here? Quote Link to comment Share on other sites More sharing options...
obiot Posted December 21, 2018 Share Posted December 21, 2018 Hi, different ways i see to acheive that : 1. Draw a glow sprite overlay on top of your sprite (extend the draw method and draw your glowing sprite after call the parent draw function) 2. Draw a glowing ellipse using the renderer fillEllipse function (note that you need the 6.3.0 version that also implement it for the webGL Renderer). 3. Use a webgl shader, but this would work only in webgl mode and we still lack anyway the possibility to add a shader effect on sprite object (in my todo list for the next 6.4 version) let me know what you came up with ! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.