Unexpected result

Get help using Construct 2

Post » Mon Dec 21, 2015 1:59 pm

In this capx:

Clamp not Working

I have two layouts

-Layout1 has a toggle system for my set x with clamp action

-Layout 2 just has an every tick event setting x with clamp

Layout2 works as expected, but when toggling on Layout1 everything freezes..
I'm probably missing something obvious, but can't figure it out..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Mon Dec 21, 2015 3:37 pm

If you click the button the focus is set to the button, because the button is a html-object. You have to click on the layer/canvas to set the focus again on it, then it should work.
B
24
S
3
G
1
Posts: 451
Reputation: 2,165

Post » Mon Dec 21, 2015 6:44 pm

Asmodean wrote:If you click the button the focus is set to the button, because the button is a html-object. You have to click on the layer/canvas to set the focus again on it, then it should work.


That's what you get for never working with DOM-objects..
First time I noticed..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775


Return to How do I....?

Who is online

Users browsing this forum: blackhornet, Fradno, Yahoo [Bot] and 21 guests