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 / Moving image up and down

Author
Message
JustinC
6
Years of Service
User Offline
Joined: 5th May 2017
Location: Belgium
Posted: 7th May 2017 18:32
So I'm working on my first app and there's a part where I talk about nutrition. Now, the virtual resolution is 500x768, the image is 500x4000 so I want to be able to scroll the image down and up (mouse and touchscreen) so people can read the whole text. How do I do this? ? :-|

Attachments

Login to view attachments
BatVink
Moderator
20
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 7th May 2017 21:13 Edited at: 7th May 2017 21:14
You would use SetSpritePosition() each cycle to adjust the position when the right condition is met (Pointer is down and pointer position <> last pointer position)

Take a look at the example projects that are installed with AGK. Things like this are demonstrated in those projects.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Quidquid latine dictum sit, altum sonatur
TutCity is being rebuilt
Richard_6
7
Years of Service
User Offline
Joined: 3rd Feb 2017
Location:
Posted: 8th May 2017 05:07 Edited at: 8th May 2017 05:07
Hi JustinC!

See if this post helps!
JustinC
6
Years of Service
User Offline
Joined: 5th May 2017
Location: Belgium
Posted: 8th May 2017 16:24
Thanks!

Login to post a reply

Server time is: 2024-03-28 18:07:07
Your offset time is: 2024-03-28 18:07:07