What would be the best way of achieving this effect?

FallingBoxStudiosFallingBoxStudios Freelance Graphic DesignerMember Posts: 822
edited September 2014 in Working with GS (Mac)

Hi, I have been stuck on this one thing in my game for almost 2 weeks :(

What I'm trying to achieve is a scrolling pattern constituting of 5 actors repeating themselves that scroll endlessly until you start the game.

My problem is I can't find a way of making the actors scroll all over the screen (like below, created with Photoshop)

image

Right now all I can do is this

image

So what would be the best way of achieving this effect?

Ps: Yes I have considered using a full image of the pattern repeating itself, but it wont achieve what I need.

Comments

  • HopscotchHopscotch Member, PRO Posts: 2,782
    edited September 2014

    @FallingBoxStudios‌ , make the actor bigger vertically and in the graphics options in the actor set Vertical Wrap to "Tile"?

  • FallingBoxStudiosFallingBoxStudios Freelance Graphic Designer Member Posts: 822
    edited September 2014

    @Hopstoch I just tried that, but since the collision box of my actors are small it just did this

    image

  • HopscotchHopscotch Member, PRO Posts: 2,782

    @FallingBoxStudios‌ , is the above just for display? Then make an image specific for that.

  • FallingBoxStudiosFallingBoxStudios Freelance Graphic Designer Member Posts: 822

    Well I have interpolated the actors once the game begins (so once the game begins the shrink away) so I'm not sure if it will work with a larger collision box.

  • HopscotchHopscotch Member, PRO Posts: 2,782

    @FallingBoxStudios‌, I don't understand where the collision box comes in if it is just for display. Maybe describe it a bit more.

  • BBEnkBBEnk Member Posts: 1,764

    duplicate the actor.

  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772

    If it's just for display add a Replicate Behavior to each colored ball with as many steps/copies as it takes to fill the screen.

  • FallingBoxStudiosFallingBoxStudios Freelance Graphic Designer Member Posts: 822

    Thanks everyone for all the help, I managed to do it :)
    But I have bumped into a weird glitch with the actor movement, each actor weirdly shakes a lot causing the pattern to go uneven

    image

    Here's the code, what do you think could be causing this?
    image
    I also have a destroy behaviour after 7 seconds

  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772

    Here is a sample I did using Replicate if it helps at all.

  • FallingBoxStudiosFallingBoxStudios Freelance Graphic Designer Member Posts: 822

    Thank you so much @jamie_c‌, that worked so much better! :D

  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772

    Cool, glad it worked for you!

Sign In or Register to comment.