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 / button pressing

Author
Message
qwedsa
15
Years of Service
User Offline
Joined: 5th Jan 2009
Location:
Posted: 6th Jun 2013 17:06
i have a logo screen, and then a menu screen with several buttons

if i click the logo screen, it also clicks whatever menu button is at that x,y point where i clicked on the logo screen

i've tried writing this before the menu code:

repeat
until getPointerReleased( )

and i tried couple similar ideas, like repeat until getPointerPressed = 0

but it does not work. any suggestions ?
AgentSam
12
Years of Service
User Offline
Joined: 14th Mar 2012
Location: Virtual Space
Posted: 6th Jun 2013 18:15
I'm in busy mode at the moment, so I'll just have to point you to previous threads about the same topic:

http://forum.thegamecreators.com/?m=forum_view&t=189488&b=41
http://forum.thegamecreators.com/?m=forum_view&t=201430&b=41
http://forum.thegamecreators.com/?m=forum_view&t=200352&b=44

Check those out.

Cheers,
AgentSam
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 6th Jun 2013 18:21
You need to add a Sync() call in your repeat/until group, otherwise the pointer state (and others) are not updated.

Cheers,
Ancient Lady
AGK Community Tester and AppGameKit Master

Login to post a reply

Server time is: 2024-05-02 20:12:27
Your offset time is: 2024-05-02 20:12:27