enpu Posted September 20, 2018 Share Posted September 20, 2018 Control movement in mobile games with virtual joystick. Preview: https://www.panda2.io/plugins/joystick Documentation: https://www.panda2.io/plugins/joystick/docs Download: https://www.panda2.io/plugins#joystick Ninjadoodle, khleug35, Wolfsbane and 2 others 5 Quote Link to comment Share on other sites More sharing options...
Ninjadoodle Posted September 20, 2018 Share Posted September 20, 2018 @enpu Awesome, thanks for this Quote Link to comment Share on other sites More sharing options...
khleug35 Posted September 20, 2018 Share Posted September 20, 2018 @enpu ?, I love you so much !!!!!!!!!!!!!!!!!thanks for this Quote Link to comment Share on other sites More sharing options...
WombatTurkey Posted September 20, 2018 Share Posted September 20, 2018 Wow O_O Quote Link to comment Share on other sites More sharing options...
Wolfsbane Posted September 20, 2018 Share Posted September 20, 2018 This one. Will be used. ? Nice! Quote Link to comment Share on other sites More sharing options...
BillyKane Posted September 28, 2018 Share Posted September 28, 2018 Comment: This plugin does not have buttons and not support two finger touchpad. sad Quote Link to comment Share on other sites More sharing options...
enpu Posted September 28, 2018 Author Share Posted September 28, 2018 Hello @BillyKane and welcome to Panda forums! Thanks for your feedback. There are different buttons in the Essentials plugin: https://www.panda2.io/plugins#essentials What exactly do you mean by "two finger touchpad"? Quote Link to comment Share on other sites More sharing options...
khleug35 Posted September 28, 2018 Share Posted September 28, 2018 9 hours ago, enpu said: Hello @BillyKane and welcome to Panda forums! Thanks for your feedback. There are different buttons in the Essentials plugin: https://www.panda2.io/plugins#essentials What exactly do you mean by "two finger touchpad"? I think that he means Multi-Touch. right?? @BillyKane My case: the joystick of movement control on left hand side, the shoot button on right hand side of screen. when I hold movement joystick and touch the ''shoot button" on mobile. it have an effect on movement control. My solution is disable joystick's mousedown function on right hand side of screen. (but I’m Not Sure Is it the best way to solve the problem) open the joystick.js file , and try this code on update update: function() { if(game.input.mouse.x < 550){ if (!this.active) return; var angle = this._mouseDownPos.angle(game.input.mouse); var dist = this._mouseDownPos.distance(game.input.mouse); var radius = this.bg.shapes[0].shape.radius / 2; if (dist > radius) dist = radius; this.pad.position.x = Math.cos(angle) * dist; this.pad.position.y = Math.sin(angle) * dist; this.axis.x = this.pad.position.x / radius; this.axis.y = this.pad.position.y / radius; } } Quote Link to comment Share on other sites More sharing options...
enpu Posted September 28, 2018 Author Share Posted September 28, 2018 This sounds like a bug. Will add to the roadmap. Thanks! Quote Link to comment Share on other sites More sharing options...
enpu Posted January 5, 2019 Author Share Posted January 5, 2019 Virtual Joystick plugin has been updated to 1.1.0 and now supports multitouch khleug35 1 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.