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.

Newcomers AppGameKit Corner / How to make scrolling menu by swiping? 2

Author
Message
lmb
9
Years of Service
User Offline
Joined: 3rd Apr 2015
Location:
Posted: 30th Jan 2016 15:46
Hi,
I added to the conversation on the forum for "How to make scrolling menu by swiping?"

https://forum.thegamecreators.com/thread/215041#postHolder

I am struggling to use the swipe menu commands

The phone struggles to tell the difference between


if touch_type = 1 and

if touch_type = 3







Any advice or refinements are welcome

Thanks
lmbeeee
Cybermind
Valued Member
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: Denmark
Posted: 31st Jan 2016 10:06 Edited at: 31st Jan 2016 10:09
Here is some basic code for scrolling I made.

You will see this:
queue_size * 75 - 720

queue_size is the number of items in the menu, 75 is the Y size of each element, 720 is the screen Y resolution. Change them for your needs.

Feel free to ask if you want to use it and need some explaining


13/0
lmb
9
Years of Service
User Offline
Joined: 3rd Apr 2015
Location:
Posted: 1st Feb 2016 20:30
Thanks Cybermind,

I am not sure where to put in the command that will look for a sprite that has been hit.
I can swipe as before, though the swipe is in the opposite direction to what I am looking for.
When I add the commands to look for the sprite hit it gets confused and sometimes swipes
and sometimes follows the link to the text I'd like to show. So no real difference to where I was earlier.




lmbeeee

Login to post a reply

Server time is: 2024-04-25 14:26:02
Your offset time is: 2024-04-25 14:26:02