Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Bug: 2.0.16 SetVirtualJoystickVisible(1,0)

Author
Message
Preben
AGK Studio Developer
20
Years of Service
User Offline
Joined: 30th Jun 2004
Location:
Posted: 8th Jan 2016 13:49
Even if Virtual Joystick is not visible , it still takes the input from that screen area , so you cant place another sprite/button in that position ( without moving the virtual joystick offscreen ).
best regards Preben Eriksen,
Preben
AGK Studio Developer
20
Years of Service
User Offline
Joined: 30th Jun 2004
Location:
Posted: 8th Jan 2016 14:27
Its the same problem with SetVirtualButtonVisible(butuse,0)
If virtual button is not visible it still catch the input.
best regards Preben Eriksen,
CJB
Valued Member
20
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Essex, UK
Posted: 8th Jan 2016 14:37
No. That is exactly how they are intended to work. From the docs:

SetVirtualJoystickVisible
Sets whether the joystick is visible on screen, this does not affect its ability to accept input, use SetVirtualJoystickActive to affect if a virtual joystick will accept input. An invisible joystick can still be active.

SetVirtualButtonVisible docs:
Sets whether the virtual is visible on screen, this does not affect its ability to accept input, use SetVirtualButtonActive to affect if a virtual button will accept input. An invisible button can still be active.

If you are using the regular IDE, just hit F1 with your cursor over a command to bring up the docs for that command.

V2 T1 (Mostly)
Phone Tap!
Uzmadesign
Preben
AGK Studio Developer
20
Years of Service
User Offline
Joined: 30th Jun 2004
Location:
Posted: 8th Jan 2016 16:04
Yes i should read the docs , just spent some hours trying to figure out why some gui elements could not get input but some could , i expected that non visible objects did not receive any input , but hey i will just use SetVirtualJoystickActive and SetVirtualButtonActive. Thanks.

best regards Preben Eriksen,

Login to post a reply

Server time is: 2024-11-17 02:29:16
Your offset time is: 2024-11-17 02:29:16