Touch Object not Working

Bugs will be moved here once resolved.

Post » Thu Feb 20, 2014 10:01 pm

Hi.

Using the r163.
2 layouts with a button in each screen.
Using "touch" object - "Use mouse input" - yes.

Object. Click button in layout 1 to take you to layout 2 - and click button in layout 2 to take you to layout 1.

Problem - Not working. Clicking the button does nothing.

https://drive.google.com/folderview?id= ... sp=sharing

Windows 7 Professional 64 bit Service Pack 1

Tried Chrome and firefox.
B
3
Posts: 1
Reputation: 200

Post » Fri Feb 21, 2014 2:44 pm

What are the events?(I don't have C2 on this computer)
Is it
On touched buttonlayout
-Go to layout 2
On touched button layout2
-goto layout one?
B
11
S
5
G
2
Posts: 496
Reputation: 2,306

Post » Fri Feb 21, 2014 2:57 pm

Aodh wrote:Hi.

Using the r163.
2 layouts with a button in each screen.
Using "touch" object - "Use mouse input" - yes.

Object. Click button in layout 1 to take you to layout 2 - and click button in layout 2 to take you to layout 1.

Problem - Not working. Clicking the button does nothing.

https://drive.google.com/folderview?id= ... sp=sharing

Windows 7 Professional 64 bit Service Pack 1

Tried Chrome and firefox.



Your upload is not working.

If you use a sprite as button, you can use touched object.

If you used the actual button instance, it has its own function.
Instead of starting with touch, start with the button object, and select from its options "is clicked"
B
57
S
17
G
21
Posts: 1,878
Reputation: 19,562

Post » Fri Feb 21, 2014 4:27 pm

Also realize that the button object may not work on all platforms. So if you are targeting mobile especially, then use a sprite in place of the button object. You get much better flexibility that way. I really have yet to see a scenario in C2 where you would ever actually need to use the button object instead of a sprite drawn to look like a button...
B
49
S
12
G
10
Posts: 1,833
Reputation: 14,573

Post » Fri Feb 21, 2014 4:34 pm

Oh.He's using a button.I thought it was a sprite button.Sorry
B
11
S
5
G
2
Posts: 496
Reputation: 2,306

Post » Mon Feb 24, 2014 1:41 pm

Closing as not a bug. Use 'On button clicked' rather than the Touch object.
Scirra Founder
B
387
S
230
G
87
Posts: 24,249
Reputation: 192,240


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 5 guests