Sign in to follow this  
Followers 0
ghetek

moving an image problem

2 posts in this topic

all i wanted to do was move an image across the screen SMOOTHLY! first i tried a splash screen with a pixel move over and a 10ms sleep time but that was way too choppy so i had to resort to this nasty little image jumping splash screen... would there be a better way to move that image in a gui? i just want to move a few images from the extent of the right side to the left side.

For $i = 1 to iniread($db,"geninfo","numinages","10") Step 1
scrollsplash(@scriptdir & iniread($db,"image" & $i,"file","NA"),iniread($db,"image" & $i,"width","NA"),iniread($db,"image" & $i,"height","NA"),[COLOR=red]2500[/COLOR])
Next


func scrollsplash($file,$picwidth,$picheight,$sleepval)
For $i = @DesktopWidth + 1 to 0-$picwidth Step -200
SplashImageOn ( "you shouldnt see this!",$file,$picwidth,$picheight,$i,-1,1)
sleep($sleepval)
Next
endfunc

Share this post


Link to post
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0