change actor size for 10 seconds then change back?
developer6810
Member Posts: 139
I have a main actor (w-75 h- 35) and want to add a powerup so when the main actor overlaps or collides with the powerup, it's width (only width) increases by 50 (to 125) and then switches back to 75 after 10 seconds. I've tried adding a timer that changes width FOR 10 seconds, I've tried changing the width right after they come in contact and then adding timer AFTER 10 seconds change back to normal width. Both these things changed the width to 125 but after 10 seconds it didn't change back. Any ideas?
Best Answer
-
tenrdrmer Posts: 9,934Make a separate rule in the actor.
When Self.Width=125
--After 10 Seconds Run to Completion true
---Change self.Width to 75
Answers
So additionally, you would need to make a rule that when the powerup and the actor collide, change self.Width to 125?
So what exactly does "Run to Completion" do?