LiveWire Network Peer Answers Peer Support Teen Forums Tech Forums College Forums 418 users online 223138 members 406 active today Advertise Here Sign In
TeenCollegeTechPhotos | Quizzes | LiveSecret | Memberlist | Dictionary | News | FAQ
Member Spotlight
Antigen
Movies: Ace ventura
Mood: Frustrated
You have 1 new message.
Emergency Help
Until you sign up you can't do much. Yes, it's free.

Sign Up Now
Membername:
Password:
Already have an account?
Invite Friends
Active Members
Groups
Contests
Moderators
0 online / 0 MPM
Fresh Topics
  LiveWire / Technical Forums / Programming & Application Development / Viewing Topic

scrollong backgrounds
Replies: 5Last Post Dec. 16, 2004 5:40pm by Duekiller
Welcome to LiveWire!
We're Stronger Together.
Join the Community
Single page for this topic Email Print Favorite
( xxxxxxxx )


Technician
Reply
how do i get them in c++ and vb plz help

3:45 pm on Sep. 2, 2004 | Joined: Sep. 2004 | Days Active: 22
Join to learn more about xxxxxxxx United Kingdom | Posts: 33 | Points: 255
LiveWire Humor
sakurag


Soothsayer

Patron
Reply
Can you explain a little bit more of what you'd like from a scrolling background?

Are you talking for a game like super mario, or a background with scroll bars.

-------
I've got spurs that jingle jangle jingle.
As I go riding merrily along.
And they sing, "Oh, ain't you glad you're single?"
And that song ain't so very far from wrong.


11:40 pm on Sep. 2, 2004 | Joined: Oct. 2002 | Days Active: 867
Join to learn more about sakurag Washington, United States | Straight Male | Posts: 2,823 | Points: 12,330
( xxxxxxxx )


Technician
Reply
for a game for example have a picture that when goes of the side of the screen it comes back on the other. but i wont the bit that hasnt gone of the screen to stay there.

3:33 pm on Sep. 4, 2004 | Joined: Sep. 2004 | Days Active: 22
Join to learn more about xxxxxxxx United Kingdom | Posts: 33 | Points: 255
sakurag


Soothsayer

Patron
Reply
You may want to look at something called BitBlt.

Whatever you're tracking for movement will keep the stored movement.  I believe with BitBlt it uses a RECT structure.

I would wrap the BitBlt function up, so you don't have to call it explicitly every time.  You would then bitblt the image based on this.

I would separate the space into two parts, if the position is 0, then part 1 would be the whole image and part 2 would be nothing.  As you move the position, part 1 and part 2 grow and shrink depending.  You would then bitblt parts of the image into each of these parts.

It's rather difficult to explain, since it's purely visual.

imagine this is the screen:

[******|***]
    ^        ^
    1         2

As you move the |, the pieces grow and shrink.
You then make sure you draw the pieces of the image accordingly.

-------
I've got spurs that jingle jangle jingle.
As I go riding merrily along.
And they sing, "Oh, ain't you glad you're single?"
And that song ain't so very far from wrong.


9:58 pm on Sep. 6, 2004 | Joined: Oct. 2002 | Days Active: 867
Join to learn more about sakurag Washington, United States | Straight Male | Posts: 2,823 | Points: 12,330
the real anti christ


Swami

Patron
Reply
allegro

-------
Out of smoke then he appears

Master of disguise.

8:55 pm on Dec. 14, 2004 | Joined: Dec. 2002 | Days Active: 1,346
Join to learn more about the real anti christ Congo | Posts: 16,807 | Points: 26,280
Duekiller

Dairy Product Addict
Reply
ok the eziest way is to do the following (assuming you are talking in 2d)

have the two of the same images next to each other, the one on the bottom is flipped (like that it looks continious), then have them scroll and when the second image completes across the screen, just reset the coordinates. PM me for more info.

-------
Some days I am the dog, Some days I am the hydrant. In either case the sun shines in my face.


5:40 pm on Dec. 16, 2004 | Joined: May 2004 | Days Active: 421
Join to learn more about Duekiller Ohio, United States | Metrosexual Male | Posts: 936 | Points: 5,166
Single page for this topic Email Print Favorite

Quick Reply

You are signed in as our guest.

Looking for something else?
 

  LiveWire / Technical Forums / Programming & Application Development / Viewing Topic