Nov 19th, 2002, 10:47 AM
#1
Thread Starter
Junior Member
scrollin' scrollin' scrollin'....
Hey all. I need help with a small problem. how would i go about making thhe background scroll? I know the basic concept(i think) but need some help in application.
Vowing to help the helpless, befriend the friendless, and to defeat the... um...defeatless!!
Nov 19th, 2002, 01:14 PM
#2
Thread Starter
Junior Member
so no one can help me?
Vowing to help the helpless, befriend the friendless, and to defeat the... um...defeatless!!
Nov 19th, 2002, 03:07 PM
#3
Thread Starter
Junior Member
Cmon, Please will someone help me with this!! It is needed for a game i am endeavering to make!
Vowing to help the helpless, befriend the friendless, and to defeat the... um...defeatless!!
Nov 19th, 2002, 03:10 PM
#4
Frenzied Member
You can do this with BitBlt by changing the source and destination coordinates for the image over time
You also have to consider the special case of wrap arounds (would require two blts).
Z.
Nov 19th, 2002, 03:21 PM
#5
Thread Starter
Junior Member
This is what i am trying to figure out.
Vowing to help the helpless, befriend the friendless, and to defeat the... um...defeatless!!
Nov 19th, 2002, 04:38 PM
#6
Good Ol' Platypus
Try this little proggie I made:
Attached Files
All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
(Just a heads-up)
Nov 20th, 2002, 08:36 AM
#7
Addicted Member
all values are Single except Sprite.Width and Sprite.Height
'Tile rects
xright = xleft + 5 * Sprite.Width
ybot = ytop - 5 * Sprite.Height
For yplot = ytop To ybot Step Sprite.Height
For xplot = xleft To xright Step Sprite.Width
Blit Sprite, xplot, yplot
Next xplot
Next yplot
'The greater than sign assumes that ytop increases each frame
If ytop > (pick a value) Then ytop = ytop - Sprite.Height
'The greater than sign assumes that xleft increases each frame
If xleft > (pick a value) Then xleft = xleft - Sprite.Width
ytop = ytop + 0.05
xleft = xleft + 0.001
Last edited by dafhi; Nov 20th, 2002 at 08:40 AM .
Nov 20th, 2002, 01:31 PM
#8
Thread Starter
Junior Member
How about just making it scroll on it's own? It will be a top-down scroller, like a shooter.
Vowing to help the helpless, befriend the friendless, and to defeat the... um...defeatless!!
Nov 20th, 2002, 05:11 PM
#9
Good Ol' Platypus
Well, just put the code in a timer !
If you want to make it scroll slowly right, you can add 1 to the XScroll value each time and then blit it.
All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
(Just a heads-up)
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules
Click Here to Expand Forum to Full Width