pfluffernutter Posted February 8, 2020 Share Posted February 8, 2020 No question really. Just wanted to share this gaming experiment to prove the concept of user control and hit detection for games. Not converted this to GSAP3 yet so it still uses the older throwprops plug-in. See the Pen XWbJpzB by spaul (@spaul) on CodePen 2 Link to comment Share on other sites More sharing options...
OSUblake Posted February 8, 2020 Share Posted February 8, 2020 3 hours ago, pfluffernutter said: Just wanted to share this gaming experiment to prove the concept of user control and hit detection for games. Very nice! Former game developer here, and I can tell you that using boxes for hit detection is perfectly fine, which is what Draggrable does. Pixel perfect hit detection is rarely needed, and it can become very complicated. It can also slow your game down! See the Pen 40b18190c60161960d8d12ff4fa71d1d by osublake (@osublake) on CodePen See the Pen bb6983d03e1c3582f9aac486ab9069f8 by osublake (@osublake) on CodePen 3 hours ago, pfluffernutter said: Not converted this to GSAP3 yet so it still uses the older throwprops plug-in. I didn't see where you are using the throwprops plugin in your code. Anyways, the ThrowPropsPlugin has been replaced with the InertiaPlugin. Not too much difference. Just a slightly different API. https://greensock.com/docs/v3/Plugins/InertiaPlugin 4 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now