Reset scene time - help???

DigiChainDigiChain Member, PRO Posts: 1,288
edited February 2012 in Working with GS (Mac)
In an actor I have:

On touch > Change Attribute -- scene.time to 0

Its not working. Is there a bug in the latest version, or am I doing something wrong?

Comments

  • DigiChainDigiChain Member, PRO Posts: 1,288
    I take it that goes for self.time as well then?
  • DigiChainDigiChain Member, PRO Posts: 1,288
    Cheers tshirt,

    I'm completely stumped with this one. It should be dead simple, I'll explain and maybe you can help?
    To keep it simple:

    3 actors - named a, b and c.
    If I touch actor 'a' I want actor 'c' to display for 3 secs (setting alpha to 1) and then change its alpha back to 0.
    If I touch actor 'b' I want actor 'c' to display as it did when 'a' was touched and then change alpha back to 0 after 3 seconds.
    However, if currently displaying 'c' and either 'a' or 'b' are touched again I want it to then continue displaying for 3 seconds from the last time there was a touch.

    I don't want to have to spawn and destroy as others have suggested in a previous post. There must be a way?

  • MotherHooseMotherHoose Member Posts: 2,456
    on actors you want to display:
    selfAttribute … real type … doTiming

    on rule that sets correctActorAlpha to: 1 … displays the correctActor
    add a changeAttribute: self.doTiming to self.Time

    Rule: When
    Attribute: self.Time = self.doTiming+3
    --changeAttribute: self.color.Alpha To: 0

    @};- MH
Sign In or Register to comment.