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 / Scroll View?

Author
Message
2D Analyst
AGK Developer
20
Years of Service
User Offline
Joined: 2nd May 2004
Location:
Posted: 20th Oct 2012 18:04
Programming android app using native java, there's a scroll view feature you can set in XML. It'll allow the user to scroll the screen up/down or left/right. Is there a function/feature for this in AppGameKit?

Basically, I want to setup 50 buttons and want the users to scroll the screen up/down to able to touch any buttons.
Funnell7
12
Years of Service
User Offline
Joined: 8th Sep 2011
Location: UK, England
Posted: 20th Oct 2012 18:09
When the user scrolls, do you want the buttons to scroll or the view? If its the latter, SetViewOffset() is probably what you are after...
2D Analyst
AGK Developer
20
Years of Service
User Offline
Joined: 2nd May 2004
Location:
Posted: 21st Oct 2012 19:04
Thanks!

Can AppGameKit detect finger swipe movement? Ex: If user swipe finger from top to bottom, the screen will scroll toward the bottom.
lilpissywilly
AGK Developer
13
Years of Service
User Offline
Joined: 10th Sep 2010
Location: Office Chair
Posted: 22nd Oct 2012 11:32
Yes but you have to program these yourself. There are various ways,
this is one of them:




This would be put into your mainloop somehow, I changed the names of the variables and this code isn't tested but should work. You would initiate cameraX# and cameraY# at 0.0, same with X# and Y#

My hovercraft is full of eels
2D Analyst
AGK Developer
20
Years of Service
User Offline
Joined: 2nd May 2004
Location:
Posted: 22nd Oct 2012 20:50
Thanks! I appreciate everyone help me.

Login to post a reply

Server time is: 2024-05-04 10:07:15
Your offset time is: 2024-05-04 10:07:15