Cant get Seamless Background to be Seamless

jasdipjasdip Member, PRO Posts: 7
edited September 2012 in Working with GS (Mac)
I am currently working on a vertical doodle jump style game to better become familiar with GS. One of the areas I am trying to get to work is to have a rain effect at certain intervals throughout the game, this is working to a point.
The area where I am finding difficulty is to get the the rain background to scroll seamlessly.
I thought I had my head around the x,y values required for my actor instances after mapping it out on paper, but I still have a gap between my 2 rain background images.
I have looked at a few tutorials and checked the forums but I am obviously still missing the point.
Any advice on my x y values for my rain actor instances that I have would be appreciated.

My setup currently is as follows:

Main Screen:
Position X = 160
Position Y = 240

Rain 1 Actor Instance
Position X = 160
Position Y = 720
Size Height = 485 (allow for a little overlap)


Rain 2 Actor Instance
Position X = 160
Position Y = 1200
Size Height = 480


The relevant rules/behaviors I have on "Rain 1 Actor Instance" is as follows:

Rule --> Game.BringtheRain is True
Change Attribute --> self.motion.linear velocity.Y -270

Rule --> When self.Position.Y < 240
Change Attribute --> self.Position.Y to 720


The relevant rules/behaviors I have on "Rain 2 Actor Instance" is as follows:

Rule --> Game.BringtheRain is True
Change Attribute --> self.motion.linear velocity.Y -270

Rule --> When self.Position.Y < 480
Change Attribute --> self.Position.Y to 960
Sign In or Register to comment.