button high light fade time

starcatstarcat Member Posts: 107
edited November -1 in Working with GS (Mac)
im trying to make a button that once you press it a timer activates and you cant press it until that timer comes back..

now as soon as i wrote this i started getting ideas.. about using a Boolean, but i cant figure out the no press part.

then i thought what if i used 2 images, a pressable image and a non pressable image with the opacity turned down.

so i could do a When pressed, destroy actor, and change button attribute to false,

after x seconds change attribute to true. then upon it being true spawn pressable actor or something?

Comments

  • starcatstarcat Member Posts: 107
    starcat said:
    im trying to make a button that once you press it a timer activates and you cant press it until that timer comes back..

    now as soon as i wrote this i started getting ideas.. about using a Boolean, but i cant figure out the no press part.

    and by pressable actor i mean them being on top of each other.. so when the pressable actor comes back you hit it and it goes away so you see the same image underneith but nothing happens when you press it.
    then i thought what if i used 2 images, a pressable image and a non pressable image with the opacity turned down.

    so i could do a When pressed, destroy actor, and change button attribute to false,

    after x seconds change attribute to true. then upon it being true spawn pressable actor or something?

  • ORBZORBZ Member Posts: 1,304
    bool touched = false

    rule button pressed and touched = false
    -- touched = true
    -- timer after 2s (run to completion)
    ---- touched = false
Sign In or Register to comment.