The Daily Click ::. Forums ::. Klik Coding Help ::. External scrolling background
 

Post Reply  Post Oekaki 
 

Posted By Message

chrilley

Insane Beaver

Registered
  05/01/2002
Points
  704

Game of the Week WinnerVIP Member360 Owner
1st March, 2008 at 13:32:04 -

I'm loading a picture by using Active Picture Object, now I want it to scroll downwards in the background, have it wrap around the frame field and start over. Thing is I don't know how to do it without "breaking the pattern". It doesn't wrap around smoothly so to speak...

 
Image

chrilley

Insane Beaver

Registered
  05/01/2002
Points
  704

Game of the Week WinnerVIP Member360 Owner
2nd March, 2008 at 07:07:57 -

Got it to work myself. Posting my work-around if any other poor soul faces this problem.

- Create 2 Active Pictures have them both be the same size as your application (in my case 640 x 480). Put the first one in the frame area, and the other one directly above the first.

- In your event editor have them both Set their Y position to themselves + 1 (or whatever value you like).

- And now another event (1 for every Active Picture here as well), when the Active Picture falls down to Y => 480, have it relocated up to Y = -480. (note: this is if you're using my size settings.)

The downside would be that it does drain speed from the application (I guess? Anyone with slower machine that can confirm for me?).

 
Image

AndyUK

Mascot Maniac

Registered
  01/08/2002
Points
  14586

Game of the Week WinnerSecond GOTW AwardHas Donated, Thank You!VIP Member
2nd March, 2008 at 09:21:51 -

I'm sure you could just use one active picture object to load a picture 4 times the size as the frame (the 640x480 picture repeated 2 across 2 down) and get it to move much like the way you did it with 2 active picture objects.
I'm awful at maths but I'm sure you can do it.

 
.

chrilley

Insane Beaver

Registered
  05/01/2002
Points
  704

Game of the Week WinnerVIP Member360 Owner
2nd March, 2008 at 13:41:08 -

Ah thanks! Got it to work properly with only 1 active picture now. It's like you said, the very same method as before but just doing it with one big picture object.As for the math the only change is: when the Active Picture falls down to Y => 480 to when the Active Picture falls down to Y => 0

 
Image
   

Post Reply



 



Advertisement

Worth A Click