making two spawn actors move in sync

heggebøheggebø Member Posts: 1
edited October 2014 in Working with GS (Mac)

hi! I'm new to the gamesalad, so ofc i have a problem,

I'm trying to make two platforms move perfectly aligned vertically. but also have the possibility to move them horizontaly.

i have searched the forum but only found resolutions to it when you have one platform on screen at the time,

but i have up to 3 at the time, witch causes the constrained one to jump down to the next platform rising up and not finishing the entire move across the screen, instead of spawning a new one to follow.

is there a solution to this??

another solution i thought of is using one actor but i can't find out how to make a collision free zone in the "middle". is there a way to merge 2 actors to 1 .... ????

help would be appreciated.

Comments

  • ArmellineArmelline Member, PRO Posts: 5,369

    Assuming I'm correctly understanding what you're saying, an easy solution would be to have two real game attributes - one for X and one for Y. Constrain the X and Y positions of each spawned platform to the game.X and game.Y (with offsets to account for their spawned positions). Then change the game.X and game.Y as required to move the platforms in the way you want.

  • heggebøheggebø Member Posts: 1
    edited October 2014

    the two platforms go like this ______ _______
    and should spawn more like this ______ ________
    so on and so on... ______ ________

    but it does this _____ ______
    _____ -----
    _____ ----
    _____
    _____

    and if i constrain it it does this:

                       ___________  
    
                        ___________
    
       ________     ___________
    
                         ___________
    

    what can i do to fix it

  • ArmellineArmelline Member, PRO Posts: 5,369

    I'm sorry I have no idea what you're trying to say there.

Sign In or Register to comment.