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

Post Reply  Post Oekaki 
 

Posted By Message

ripthor



Registered
  7/2/2003
Points
  184
31st January, 2004 at 3:20:08 PM -

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
  7/29/2002
Points
  5683

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

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
  7/2/2003
Points
  184
31st January, 2004 at 8:43:07 PM -

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

Image Edited by the Author.

 
n/a

Stephen [NeonairGames]

Crazy?

Registered
  7/24/2002
Points
  4522

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

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.

 
http://www.neonairgames.net

AsparagusTrevor

Mine's a pint of the black stuff

Registered
  8/20/2002
Points
  2366

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

^ Wha...?

Image Edited by the Author.

 
Image

ripthor



Registered
  7/2/2003
Points
  184
1st February, 2004 at 9:57:03 AM -

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
  9/4/2003
Points
  440
1st February, 2004 at 11:25:27 AM -

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.

Stephen [NeonairGames]

Crazy?

Registered
  7/24/2002
Points
  4522

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

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.

 
http://www.neonairgames.net

ChrisB

Crazy?

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

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
  7/2/2003
Points
  184
1st February, 2004 at 1:58:15 PM -

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

 
n/a

ChrisB

Crazy?

Registered
  8/16/2002
Points
  5457
1st February, 2004 at 2:54:07 PM -

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

 
n/a

Mr Coffee



Registered
  9/4/2003
Points
  440
1st February, 2004 at 3:40:17 PM -

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
  12/18/2003
Points
  846
1st February, 2004 at 4:12:26 PM -

?

 
Mr Icekirby says so!
OBEY ME!

ripthor



Registered
  7/2/2003
Points
  184
2nd February, 2004 at 6:31:32 PM -

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
  7/2/2003
Points
  184
3rd February, 2004 at 5:16:17 PM -

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
   

Post Reply



 



Advertisement

Worth A Click