Could this type of Parallax background be made in GS?

PixelPunPixelPun Member Posts: 324
edited June 2012 in Working with GS (Mac)
Hello all, I was just curious if this type of background could be created in GS. I like to give myself little projects and try to mimic something I like... but I have been unsuccessful in recreating this. I have done parallax when it is scrolling from left to right. But up and down and left to right is tricky it seems. Are there any tips or has anyone done this so I can see an example?



Thanks!
Rob

Best Answer

  • dmilinovichiiidmilinovichiii Posts: 620
    Accepted Answer
    This is definitely possible. I have done it in many games of mine. You need to put an actor on the scene and edit the instance of it instead of the prototype. You need to use it to constrain the camera x and y positions to two game attributes. Then you constrain the background images' x and y positions to the two game attributes. You will have to try different things for the math, but it could look similar to the video. Maybe someone else can explain it better.

Answers

  • PixelPunPixelPun Member Posts: 324
    @mr.rinoy yeah I figured it was something that I need to link to the camera movements... But I have never done that sorta thing before. I guess I'm going to have to play with it some more to get the effect I want.

    I got a neat effect from making the bg move when I hit the main actor movement keys, but then If I hit a wall the BG still goes... so it doesn't work. But the challenge of mimicking it is fun.
  • PixelPunPixelPun Member Posts: 324
    A really quick test again with simple art... but it is the closest that I have got to recreating the parallax. The problem is the edges of the screen, I need to find a way to get the BG to stop when the actors movement speed is 0, I know it can be done... Still working it out.

  • RiffelRiffel Member Posts: 1,272
  • PixelPunPixelPun Member Posts: 324
    @riffel How did you achieve this? What is the movement of the multiple backgrounds based on? My backgrounds mimic the main actors movements but are set up to accelerate slower... Then I have walls on each side of the BG actors so they stop at certain points..

    Curious how you achieved your effect, but it looks awesome!
Sign In or Register to comment.