Forum


Welcome Guest 

Show/Hide Header

Welcome Guest, posting in this forum requires registration.





Pages: [1]
Author Topic: Virtual Pad visualization
jenzop
Newbie
Posts: 2
Permalink
Post Virtual Pad visualization
on: November 7, 2012, 19:39
Quote

Hello!!

I just download the TNTVirtualPad 1.01 and take a look at readme.pdf
Open my Gideros Studio, and the 2 examples of the VirtualPad, but none of them appear the virtualPad and the buttons on the screen.
First try to run on gideros player and later export with eclipse .apk to android phone, and continue the same problem.
The examples run, moves objects and fire in the tank game, but i cant see the virtual pad.

Any idea what´s wrong?

gregbug
Administrator
Posts: 19
Permalink
Post Re: Virtual Pad visualization
on: November 13, 2012, 00:05
Quote

Hi! jenzop
and sorry for the delay....

due a change in gideros sdk we need to modify example code... (layer)

in example2

just change (in main.lua)

local vPad = CTNTVirtualPad.new(stage, "example2_gfx", PAD.STICK_DOUBLE, PAD.BUTTONS_ONE, 20, 1)

to

local vPad = CTNTVirtualPad.new(stage, "example2_gfx", PAD.STICK_DOUBLE, PAD.BUTTONS_ONE, 20, 2)

note last parameter... on first case was layer 1 now it must be 2 (layer 1 is background)

on exaple 1 change

local vPad = CTNTVirtualPad.new(stage, "tntskinpad", PAD.STICK_SINGLE, PAD.BUTTONS_TWO, 20,1)

to
local vPad = CTNTVirtualPad.new(stage, "tntskinpad", PAD.STICK_SINGLE, PAD.BUTTONS_TWO, 20,2)

hope it helps.

ciao Gianluca.

jenzop
Newbie
Posts: 2
Permalink
Post Re: Virtual Pad visualization
on: November 13, 2012, 21:04
Quote

Now it works!
Thanks!!

Pages: [1]


Mingle Forum by cartpauj
Version: 1.0.34 ; Page loaded in: 0.012 seconds.