Mezzorio Posted September 7, 2017 Share Posted September 7, 2017 Hey Guys, I'm currently moving my camera around a series of sprites but the movement is painful to look at and jerky when moving the sprites and especially with higher speeds, is there anything you can do to fix/help the lag/poor performance as it isn't really usable as a build in this current state. I also as @Wingnut said have the issue that the transparent background is still clickable. Here is my current playground: https://www.babylonjs-playground.com/#41N19L#3 @Deltakosh @Wingnut @JohnK Any incites Guys? Quote Link to comment Share on other sites More sharing options...
Mezzorio Posted September 7, 2017 Author Share Posted September 7, 2017 I solved my own problem mostly, but any additional tips are great as it's not perfect yet - ONLY PERFORMANCE WISE Still not fixed clickable area issue Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted September 7, 2017 Share Posted September 7, 2017 After thinking about it I think you can get the pixel coordinate with: var u = this.pointerX - pickResult.pickedSprite.position.x; var v = this.pointerY - pickResult.pickedSprite.position.y; (not tested but should work) Quote Link to comment Share on other sites More sharing options...
Mezzorio Posted September 8, 2017 Author Share Posted September 8, 2017 14 hours ago, Deltakosh said: After thinking about it I think you can get the pixel coordinate with: var u = this.pointerX - pickResult.pickedSprite.position.x; var v = this.pointerY - pickResult.pickedSprite.position.y; (not tested but should work) Where and how do I implement this? 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.