The Daily Click ::. Forums ::. Klik Coding Help ::. Moving background system box with scrolling problem
 

Post Reply  Post Oekaki 
 

Posted By Message

ripthor



Registered
  02/07/2003
Points
  184
31st January, 2004 at 15:20:08 -

Can someone tell me what's wrong with this example? There is a background box moving to the right and the screen scrolls with it. The problem is that the box stretch as it move, leaving a trail behind. Just see for yourself:

http://www.geocities.com/ripthor/scroll.zip

 
n/a

Assault Andy

Administrator
I make other people create vaporware

Registered
  29/07/2002
Points
  5686

Game of the Week WinnerVIP Member360 OwnerGOTM JUNE - 2009 - WINNER!GOTM FEB - 2010 - WINNER!	I donated an open source project
31st January, 2004 at 16:44:36 -

I haven't checked your file, but what you need to do is create a background object (gradient or plain or your own creation) then make it cover the whole play area and that should fix it.

 
Creator of Faerie Solitaire:
http://www.create-games.com/download.asp?id=7792
Also creator of ZDay20 and Dungeon Dash.
http://www.Jigxor.com
http://twitter.com/JigxorAndy

ripthor



Registered
  02/07/2003
Points
  184
31st January, 2004 at 20:43:07 -

That doesn't work at all, it still does the same thing.

Image Edited by the Author.

 
n/a

Cazra

Crazy?

Registered
  24/07/2002
Points
  4472

Game of the Week WinnerVIP Member
1st February, 2004 at 07:50:17 -

It seems your host doesn't allow direct linking. I looked at your file though. It may just be corrupt. Try putting another background system object onto the level editor. Why? Because sometimes if my mouse goes over an action in the event editor below an object that isn't on the level editor,then it performs an illegal operation.
Your system box object probably doesn't exist because you probably deleted it.

 
n/a

AsparagusTrevor

Mine's a pint of the black stuff

Registered
  20/08/2002
Points
  2364

Game of the Week WinnerHas Donated, Thank You!VIP MemberEvil kliker
1st February, 2004 at 07:59:22 -

^ Wha...?

Image Edited by the Author.

 
Image

ripthor



Registered
  02/07/2003
Points
  184
1st February, 2004 at 09:57:03 -

I'm not sure I understand what you mean when you say the file is corrupted... I don't get any illegal operation if I move my mouse around, plus there's only on background system box and a quick backdrop there. Do you have the latest build, 117?

I still added a BSB but it does the same thing.

Oh, and there's something strange I just noticed: if you don't modify the BSB (no image), then the box will simply stop moving when the screen start to scroll! What the hell is this???

Edit: Oh! One last thing! I really don't think it's a corruption since it does that with every parallax tutorial I've tried! Of course, you have to midify them a bit so the BSB doesn't take the whole screen... Otherwise, they all work, of course

Image Edited by the Author.

 
n/a

Mr Coffee



Registered
  04/09/2003
Points
  440
1st February, 2004 at 11:25:27 -

The only time I have seen that happen is when the Back Ground System Box is transparent. If the one furthest back has a transparent color it leaves trails. Double check to make sure it is not transparent. Also, try enabling or disabling VRAM.

 
99 percent chance that the above post is 100 percent correct.

Cazra

Crazy?

Registered
  24/07/2002
Points
  4472

Game of the Week WinnerVIP Member
1st February, 2004 at 11:28:28 -

Does my ability to use many syllables confuse you? It's impossible for the avarage person to understand Geekinese. Mwahaha!

If the thing isn't corrupted, then beats me.

 
n/a

ChrisB

Crazy?

Registered
  16/08/2002
Points
  5457
1st February, 2004 at 11:47:50 -

I'm confused, since I did the same thing to a parallax tutorial I made - http://sfgames.clicksplat.com/cgi-bin/download.cgi?examples/mmf&Parallaxing.zip - and I can't get the problem to happen.

 
n/a

ripthor



Registered
  02/07/2003
Points
  184
1st February, 2004 at 13:58:15 -

Chris, to make it happen in your tut, just delete the sky BSB.

 
n/a

ChrisB

Crazy?

Registered
  16/08/2002
Points
  5457
1st February, 2004 at 14:54:07 -

Then you know what to do, add a BSB behind everything else instead of using the frame colour.

 
n/a

Mr Coffee



Registered
  04/09/2003
Points
  440
1st February, 2004 at 15:40:17 -

Thats because the sky has no transparent color. If you delete it then the other ones leave trails because they have transparent colors. Like I already said, the one furthest back can't have a transparent color.

 
99 percent chance that the above post is 100 percent correct.

Mr Icekirby



Registered
  18/12/2003
Points
  846
1st February, 2004 at 16:12:26 -

?

 
Mr Icekirby says so!
OBEY ME!

ripthor



Registered
  02/07/2003
Points
  184
2nd February, 2004 at 18:31:32 -

Wrong. Even if you fill the transparent part of the trees BSB, it'll still do the same thing. Like Chris said, you need to put another BSB in the back AND this BSB MUST be moving as well, otherwise you get the same bug. It is a bug there's no other way.

 
n/a

ripthor



Registered
  02/07/2003
Points
  184
3rd February, 2004 at 17:16:17 -

With regular parallax, there's no problem. It's only when there's no moving BSB in the backgroung that the problem occurs.

 
n/a

The Chris Street

Administrator
Unspeakably Lazy Admin

Registered
  14/05/2002
Points
  50117

Game of the Week WinnerClickzine StaffAcoders MemberKlikCast StarVIP MemberPicture Me This Round 35 Winner!Second GOTW AwardYou've Been Circy'd!Picture Me This Round 38 Winner!GOTM December Third Place!!
I am an April FoolKliktober Special Award Tag
3rd February, 2004 at 17:23:16 -

My advice: Read my Background System Object tutorial in the articles section. It explains how to parallax from scratch in full detail. Follow it clearly and consisely, with the latest build of MMF, and you shouldn't have any problems

 
n/a

Mr Coffee



Registered
  04/09/2003
Points
  440
3rd February, 2004 at 20:36:04 -

I understand but I have never seen that problem. Probably because I always moved all the BSB's.

 
99 percent chance that the above post is 100 percent correct.
   

Post Reply



 



Advertisement

Worth A Click