GLBasic forum

Main forum => GLBasic - en => Topic started by: freshworks on 2009-Oct-28

Title: Need help with scrolling/dragging background iphone
Post by: freshworks on 2009-Oct-28
Hi,

Searching for an code example on how to scroll a background / level map / sprite with the touch/drag of a finger in the direction X, Y where the screen is bigger then the iphone 480 * 320 resolution itself.

Eventually there will be sprite what will be moving on the touch of a finger from Xold to Xnew and when it reaches x% of the resolutions border the background needs to scroll too.

Couldn't find anything on this forum so far

Erhmmm hope it's clear :)

i would love to accomplish something like this : http://www.youtube.com/watch?v=JVowHErySnc


Thanks,
Freshworks
Title: Re: Need help with scrolling/dragging background iphone
Post by: MrTAToad on 2009-Oct-28
Shame he didn't release the source code...
Title: Re: Need help with scrolling/dragging background iphone
Post by: freshworks on 2009-Oct-28
Hi,

i've tried the example you shared and that's exact what i need. To implement the mouse handlers on it, won't be so hard, lot's of examples on the forum.

Thanks, thanks

Title: Re: Need help with scrolling/dragging background iphone
Post by: MrTAToad on 2009-Oct-28
No problem!