How to make an actor blink?

CabacoCabaco Member Posts: 414
edited November -1 in Working with GS (Mac)
I want to make a button that says touch to start and I want it to blink (destroy and respawn) how do I do that?

Comments

  • steve86steve86 Member Posts: 806
    dont destroy and respawn it is not good for performance.. Just have a rule that when you touch the button switch alpha to 0 for the amount off time you want it to blink then back to 1.
  • steve86steve86 Member Posts: 806
    dont destroy and respawn it is not good for performance.. Just have a rule that when you touch the button switch alpha to 0 for the amount off time you want it to blink then back to 1.

    edit: sry double post
  • CabacoCabaco Member Posts: 414
    I made a timer after 0.5 seconds change color alpha to 0 and the after another 0.5 seconds change color alpha to 1 but it stops there how can I make it infinite blinks?
  • jb15jb15 Member Posts: 602
    Not sure how new you are--specifically, use the Change Attribute behavior, (self.color.alpha=0) and the Timer behavior.
  • CabacoCabaco Member Posts: 414
    I am not new, but not very good at this ;)
  • cbtcbt Member Posts: 644
    When:

    * "self.color.alpha"=1
    * After 0.5 Seconds:
    -Change Attribute: self.color.alpha to "0"

    When:

    * "self.color.alpha"=0
    -Change Attribute: self.color.alpha to "1"

    This should help..
  • CabacoCabaco Member Posts: 414
    Thanks its working!
  • cbtcbt Member Posts: 644
    You're very welcome!
  • PhoticsPhotics Member Posts: 4,172
    If self.color.alpha not equal to (self.time*X)%2
    Change self.color.alpha to (self.time*X)%2

    Change the value of X to control the speed.
Sign In or Register to comment.