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
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
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
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?
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
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
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?
Comments
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
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
change attributes self motion linear x and self motion linear y to 0
those are self attributes so they wont effect other instances