Change actor size for 3 seconds - how?
Hunnenkoenig
Member Posts: 1,173
It drives me crazy.
I managed it once, but after my project just crashed into nirvana and I had to start from scratch, I don't know anymore, how I did it.
I try everything with "change size" and "timer" and making custom attributes and nothing works.
I want a racket change size of +20, if a ball hits it. Now I actually can change the size +20, but I can't change it back after 3 seconds.
Any advice, how it could be solved?
I know, I did it fairly simple once, but now I start to develop more and more complicated rules and it still doesn't work :-)
I managed it once, but after my project just crashed into nirvana and I had to start from scratch, I don't know anymore, how I did it.
I try everything with "change size" and "timer" and making custom attributes and nothing works.
I want a racket change size of +20, if a ball hits it. Now I actually can change the size +20, but I can't change it back after 3 seconds.
Any advice, how it could be solved?
I know, I did it fairly simple once, but now I start to develop more and more complicated rules and it still doesn't work :-)
Comments
Rule
When Actor collides or overlaps with Actor of type Ball
Change Attribute: self.Width To self.Width+20
Change Attribute: self.Height To self.Height+20
Timer
After 3 seconds
Run To Completion
Change Attribute: self.Width To self.Width-20
Change Attribute: self.Height To self.Height-20
I tried something similar too, but i have to learn to use the expression editor, not just writing something into the field, because it sometimes don't work or I write something wrong into it...
Send and Receive Data using your own Server Tutorial! | Vote for A Long Way Home on Steam Greenlight! | Ten Years Left