Posted By
|
Message
|
Del Duio Born in a Bowling Alley
Registered 29/07/2005
Points 1078
|
20th September, 2007 at 09:37:33 -
You all know the one- Where they get in the car and the background scrolls and keeps on repeating itself- The one tree, the same rock house..
Anyhow, how would I go about making something like that? Background system box? I've used it only a couple of times before for very simple paralax. Would you have to draw the background picture so that the beginning and the end are the same?
Thanks!
--
"Del Duio has received 0 trophies. Click here to see them all."
"To be a true ninja you must first pick the most stealthy of our assorted combat suits. Might I suggest the bright neon orange?"
DXF Games, coming next: Hasslevania 2- This Space for Rent!
|
-Nick- Possibly Insane
Registered 24/11/2002
Points 2468
|
20th September, 2007 at 10:15:28 -
I would have 1 active object and duplicate it. Make it the size of the screen.
Always: Sub 1 (or whatever) from X coordinate
When location is 0-frame width: Set X coordinate to frame width
Project: Roller Coaster is on it's way!
http://www.projectrollercoaster.co.uk/
http://www.craftsncreatures.com
|
DaVince This fool just HAD to have a custom rating
Registered 04/09/2004
Points 7998
|
20th September, 2007 at 11:15:12 -
You'll probably want more than the sluggish 1 pixel, though.
Old member (~2004-2007).
|
The Chris Street Administrator
Unspeakably Lazy Admin
Registered 14/05/2002
Points 48488
|
20th September, 2007 at 11:20:01 -
No, do it this way:
1. Create the image in the background system box.
Go to the event editor. Follow these events (BGS refers to the Background System Box)
---
START OF FRAME: Set width of BGS to 640 (double the window width, you'll see why in a minute)
ALWAYS: Set X Position of BGS to x left frame - (alterable value a of BGS), Set Y position to Y Top Frame
: Add 1 to Alterable Value A of BGS
ALTERABLE VALUE A "BGS" IS GREATER OR EQUAL TO 320: Set Value A of BGS to 0
---
Thats it! The reason why we double the width of the Background System Box is to create a fake "masking" when the alterable value reaches 320. If you don't double the width this code will still work, but there will be a big white area that appears.
n/a
|
Del Duio Born in a Bowling Alley
Registered 29/07/2005
Points 1078
|
20th September, 2007 at 12:43:07 -
That sounds cool Circy, but do I have to make the beginning and the end of my picture similar? I figure I'd have to otherwise it may look like crap.
--
"Del Duio has received 0 trophies. Click here to see them all."
"To be a true ninja you must first pick the most stealthy of our assorted combat suits. Might I suggest the bright neon orange?"
DXF Games, coming next: Hasslevania 2- This Space for Rent!
|
DaVince This fool just HAD to have a custom rating
Registered 04/09/2004
Points 7998
|
20th September, 2007 at 14:52:34 -
If your image is bigger than the screen size, start and end it the same and reposition it once it's near the end (always: add to x; x > frame width - screen width/2: set x to screen width/2).
This is actually the trick I use for my vertically continuous image. Do note that if your image is the same size as the screen size, you could have three instances of the object scroll or use Circy's method.
Old member (~2004-2007).
|
AndyUK Mascot Maniac
Registered 01/08/2002
Points 14586
|
20th September, 2007 at 20:32:09 -
Phizzy done something like this for the title screen of Buzz dodge ball in the Ectoprods arcade.
I might still have the gam file somewhere.
Obviously it was an active object for that one.
.
|
Del Duio Born in a Bowling Alley
Registered 29/07/2005
Points 1078
|
21st September, 2007 at 07:09:17 -
Thanks everybody, I was sick last night so I didn't fire up MMF but I can try this tonight when I get home
--
"Del Duio has received 0 trophies. Click here to see them all."
"To be a true ninja you must first pick the most stealthy of our assorted combat suits. Might I suggest the bright neon orange?"
DXF Games, coming next: Hasslevania 2- This Space for Rent!
|
|
|