Hi Guys!!!
new TNT Virtual Pad is OUT!
some BugFIX (setMaxRadius half screen bug), new 2 Players example and optimizations.
avaible now with sources (only for donators!)
just go on my donators dropbox share folder and download!
free edition (with no sources coming soon!)
Comments
imho the example3 is slightly wrong (the 2nd player should see an opposite view of the pad, like as from their perspective). I think you should replace part of it with this:
-- setup Virutal Pad 1
local vPad_1 = CTNTVirtualPad.new(stage, "tntskinpad", PAD.STICK_SINGLE, PAD.BUTTONS_TWO, 20, 2,20,1)
vPad_1:setTextures(PAD.COMPO_BUTTON1, "buttona.png","buttonb.png")
vPad_1:setJoyStyle(PAD.COMPO_LEFTPAD, PAD.STYLE_CLASSIC)
vPad_1:setJoyAsAnalog(PAD.COMPO_LEFTPAD, false)
vPad_1:setJoyAsAnalog(PAD.COMPO_RIGHTPAD, true)
--vPad_1:setMaxRadius(PAD.COMPO_LEFTPAD, 80) -- not allowed if two pad on screen at once
vPad_1:start()
-- setup Virutal Pad 2
local vPad_2 = CTNTVirtualPad.new(stage, "tntskinpad", PAD.STICK_SINGLE, PAD.BUTTONS_TWO, 20, 2,-20,1)
vPad_2:setTextures(PAD.COMPO_BUTTON1, "buttona.png","buttonb.png")
vPad_2:setJoyStyle(PAD.COMPO_LEFTPAD, PAD.STYLE_CLASSIC)
vPad_2:setJoyAsAnalog(PAD.COMPO_LEFTPAD, false)
vPad_2:setJoyAsAnalog(PAD.COMPO_RIGHTPAD, true)
--vPad_2:setMaxRadius(PAD.COMPO_LEFTPAD, 80) -- not allowed if two pad on screen at once
vPad_2:start()
https://deluxepixel.com