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 / Sprite scroll code

Author
Message
Impetus73
12
Years of Service
User Offline
Joined: 28th Aug 2011
Location: Volda, Norway
Posted: 23rd Oct 2011 23:29 Edited at: 23rd Oct 2011 23:31
A challenge...

Can anyone enhance this sprite selection scroller, using only standard input commands, no RAW ?



I want it to work like when you scroll a webpage on a phone.

----------------
AGK user - novice
Did Amiga / AMOS programming in the 90's, just started programming again with AGK.
Impetus73
12
Years of Service
User Offline
Joined: 28th Aug 2011
Location: Volda, Norway
Posted: 24th Oct 2011 20:20
Improved it abit, but still not perfect.

Need to make a direction change detection, that does not go bananas when reading a finger on a touch device, it quickly jumps between the states, if I try to read direction change from last read, might need to set up an array of readings, then analyze them in realtime... So this code does not take into account direction change while not releasing the screen.



----------------
AGK user - novice
Did Amiga / AMOS programming in the 90's, just started programming again with AGK.
Impetus73
12
Years of Service
User Offline
Joined: 28th Aug 2011
Location: Volda, Norway
Posted: 25th Oct 2011 20:03
Even better, now I take into account the finger swiping in changing directions. Still abit jerky scroll, but I'm getting there...



----------------
AGK user - novice
Did Amiga / AMOS programming in the 90's, just started programming again with AGK.
MobileCreator
12
Years of Service
User Offline
Joined: 1st Jun 2011
Location: Ottawa - Canada
Posted: 25th Oct 2011 22:00
Hey, I'm glad I've tried your code. It is super cool - remembers me the new Windows phone interface.

Nice!

----------
Paulo
http://www.mobilecreators.com

Login to post a reply

Server time is: 2024-03-29 12:39:36
Your offset time is: 2024-03-29 12:39:36