Two actors together going left?
Hi!
I have a platform (grass) and I have a "ramp" on the right end of the grass platform and the user can rotate the ramp by drag..
I was just wondering, I want the two actors to move left of the scene TOGETHER and then appear back on the other side of the scene.. (like recycling) but still together..
Hope you know what I mean..
Is it possible?
Thanks!
I have a platform (grass) and I have a "ramp" on the right end of the grass platform and the user can rotate the ramp by drag..
I was just wondering, I want the two actors to move left of the scene TOGETHER and then appear back on the other side of the scene.. (like recycling) but still together..
Hope you know what I mean..
Is it possible?
Thanks!
Sydney Swans 2014!!
Best Answer
-
gyroscope I am here.Posts: 6,598
Hi @brendanzh926
OK, if you can't use wrap for what you want, try adding into the Rules of the leading actor:
When self.Position.X > ?? (---- this number is whatever it is when both your actors are out of site of screen area)
Change attribute self.Position.X to ?? (----this number is where you want it to appear again on the left-side of the screen)
And add into the rules of the second actor that's following:
Constrain Attribute self.Position.X to scene.Background.First Actor.Position.X - ?? (---basically you want the position X to be the same, minus the distance away from the leading actor)
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
Answers
Here is a video demonstrating it:
http://www.design3.com/training-center/engines-sdks/gamesalad/interface/gamesalad-cookbook-introduction-basics/item/1876-wrap-x-wrap-y
Sydney Swans 2014!!