guest Posted September 11, 2018 Share Posted September 11, 2018 What is the event name when sprite enter on screen or game world . and same for on exit of screen event ?? Quote Link to comment Share on other sites More sharing options...
obiot Posted September 12, 2018 Share Posted September 12, 2018 there is no really an event for it currently, but you can check for the inViewport value to detect if the object is currently in the viewport or not. definitely a good addition though, created a ticket to keep it under our radar : https://github.com/melonjs/melonJS/issues/947 Quote Link to comment Share on other sites More sharing options...
obiot Posted September 15, 2018 Share Posted September 15, 2018 added to master : https://github.com/melonjs/melonJS/issues/947 Quote Link to comment Share on other sites More sharing options...
guest Posted September 17, 2018 Author Share Posted September 17, 2018 Thank you @obiot 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.