Actor stopping

TJMNUTTJMNUT Member Posts: 236
edited November -1 in Working with GS (Mac)
I have an actor accelerating down, and I want it so when it is tapped, it stops, changes the image, then fades away. How can I stop it, and make it fade

Comments

  • TJMNUTTJMNUT Member Posts: 236
    anybody?
  • SkyMapleSkyMaple Member Posts: 817
    First of all, you don't need to bump your thread 15 min after posting.

    Now for your answer-

    Rule when touch is pressed-
    >>>Change velocity to 0 (speed)
    >>>change image to ???
    >>>Timer- after ??? Seconds (run to completion)-
    >>>>>interpolate self.alpha to 0
  • TJMNUTTJMNUT Member Posts: 236
    I cant find the alpha part
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    alpha i sa self color attribute. so in the attribute browser youll see the name of your actor, click that to go to its attributes then click color and alphas in there
  • TJMNUTTJMNUT Member Posts: 236
    ok, Thanks! but now, the actor I want to stop and fade away, has many of the same actor spawning down, so now when i touch one actor, it just freezes the other actors that are coming down. How do i fix this?
  • azavegaazavega Member Posts: 362
    Create an attribute for the actor. Ex. ( selected). And then when you touch it selected = true
    And in other rule. If self.selected it's true then
    Make all the other steps to disappear the actor... Guess that work. If I'm wrong please somebody correct me
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    dont use the change velocity behaviro with a 0 speed

    change attributes self motion linear x and self motion linear y to 0

    those are self attributes so they wont effect other instances
  • TJMNUTTJMNUT Member Posts: 236
    thanks guys!
  • TJMNUTTJMNUT Member Posts: 236
    Now when it stops, the image slides down
  • TJMNUTTJMNUT Member Posts: 236
    By that, I mean when the image changes, it slides down like liquid on glass as it fades, but I have it if the actor touches something, it destroys it, so even when the actor (Example: Ant) is "smushed" the image it changes to destroys the actor even though it's a technically dead actor, how do I solve this
  • TJMNUTTJMNUT Member Posts: 236
    I hate to annoy you all, but could you please help me figure this out? it seems like it takes the acceleration attribute on the actor a while to slow down, how do I get it to stop immediately?
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    try adding drag to it under its physics attributes
Sign In or Register to comment.