Change position whit another position
patapple
Member Posts: 873
Hello,
I need to create a sort of teletransport of my main actor. I tried to create a rule like:
self.position.x < 100 and self.position.x > 50 and self.position.y < 200 and self.position.y > 150
change alpha = 0
change self.position.x to 900
change self.position.y to 500.
The actor changes only the alpha and when it needs to change the position it doesn't work because it stop also the parent rule. I already tried with a timer with "run to completion" but it doesn't work!!
Any idea?
I need to create a sort of teletransport of my main actor. I tried to create a rule like:
self.position.x < 100 and self.position.x > 50 and self.position.y < 200 and self.position.y > 150
change alpha = 0
change self.position.x to 900
change self.position.y to 500.
The actor changes only the alpha and when it needs to change the position it doesn't work because it stop also the parent rule. I already tried with a timer with "run to completion" but it doesn't work!!
Any idea?
Comments
Are you saying that the rule you posted above will not work because of the parent rule? What is the parent rule?
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx
Here is my rule. I have also tried with a log debugging statement and it reaches only the 2 and it doesn't run the behavior with the log debugging statement 3!
Also, and more importantly, your rule only triggers when self.Position.Y is between 630 and 640, but you then change self.Position.Y to 412, so at that moment that rule is going to stop working.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
@uptimistik Will check this out
I also have a demo if you're looking to swap actor positions: http://forums.gamesalad.com/discussion/comment/385870/#Comment_385870
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User