Actor take Actors place
fightjunkie01@hotmail.com
Member, PRO Posts: 60
Ok think of this.
Random actors floating in a random order.
Now when actor 1 collides with actor 2, actor 1 should take actor 2 X and Y position and actor 2 should take actors 1 X Y position.
Now of course I could do
change attribue self.position X and Y to scene.background.actors.actor2.position.X and Y
But that would mean a specific rule in each of the actors
I want ACTOR 1 to know if it collides with actor 2 to take its spot but I also want it to know if it collides with actor 8 to take its spot without having to making individual rules to each actor.
Any way to make a universal so all actors know that if 1 of them collide with another to take there spot?
Now comes the extremly tricky part!!
If actors 2-8 are lined up on the bottom of the screen and actor 1 falls on one of them. I do NOT want him to take there spot.
I only want him to take there spot if
Actor 1 is sitting ontop of actor 2 and the player swipes actor 1 downwaards then actor 1 and 2 now switch positions
Random actors floating in a random order.
Now when actor 1 collides with actor 2, actor 1 should take actor 2 X and Y position and actor 2 should take actors 1 X Y position.
Now of course I could do
change attribue self.position X and Y to scene.background.actors.actor2.position.X and Y
But that would mean a specific rule in each of the actors
I want ACTOR 1 to know if it collides with actor 2 to take its spot but I also want it to know if it collides with actor 8 to take its spot without having to making individual rules to each actor.
Any way to make a universal so all actors know that if 1 of them collide with another to take there spot?
Now comes the extremly tricky part!!
If actors 2-8 are lined up on the bottom of the screen and actor 1 falls on one of them. I do NOT want him to take there spot.
I only want him to take there spot if
Actor 1 is sitting ontop of actor 2 and the player swipes actor 1 downwaards then actor 1 and 2 now switch positions