rex Posted May 23, 2018 Share Posted May 23, 2018 rexDrag Drag game object. It wraps input events into a class, and have some extra features: - Drag on axis (horizontal, vertical, or both) - Try dragging object, see live demo. Links Document Sample code minified source code Live demo Create and drag object : When pointer down (touch start), an object will be created and dragging. (object was created after touched, therefore it won't fire 'dragstart', or 'drag' event from Phaser.Input) rexSlider Drag thumb on a slider bar. Links Document Sample code minified source code Live demo Slider bar : drag white thumb, or press left/right arrow key rexVirtualJoyStick Simulate cursor keys according to touch events. Links Document Sample code minified source code Live demo Virtual joystick : drag on gray circle rexScroller Drag content. Slow down when dragging released, pull back when out of bounds. Links Document Sample code minified source code Live demo Scroll content : dragging inside bitmap text content ol-web and Flowan 2 Quote Link to comment Share on other sites More sharing options...
li305263 Posted May 23, 2018 Share Posted May 23, 2018 Thank you for your API documentation. It solves a lot of my problems. Quote Link to comment Share on other sites More sharing options...
rex Posted June 4, 2018 Author Share Posted June 4, 2018 Add slider plugin Quote Link to comment Share on other sites More sharing options...
rex Posted June 22, 2018 Author Share Posted June 22, 2018 Add virtual joystick plugin Quote Link to comment Share on other sites More sharing options...
Flowan Posted June 23, 2018 Share Posted June 23, 2018 Really nice work on the virtual joystick. Works like a charm! Quote Link to comment Share on other sites More sharing options...
rex Posted August 29, 2018 Author Share Posted August 29, 2018 Add scroller plugin. 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.