Anyone can help me? I want the trail to appear only when I click on a particular actor. I tried a couple of combinations but nothing seem to work. Thanks in advance.
gyroscopeI am here.Member, Sous Chef, PROPosts: 6,598
Hi Falcon80, if you mean you want a trail of particles from an actor that's dragged, put the following in the actor's Rules:
When touch is pressed
Constrain Attribute self.Position.X to game.Touches.touch 1.X Constrain Attribute self.Position.Y to game.Touches.touch 1.Y
Then your Particles Behaviour. (In Velocity/Position Direction, put random(0,360); and Spawn Rate, Particle Startup time to 0).
Hi gyroscope. Thanks for the input. My actor will be not be dragged. The trail of particles will follow the touch of my finger but that will only appear when the touch is within the area occupied by the actor. For my case, the actor is actually an animal. I want to allow the user to be able to pet the animal or play with it.
Comments
Darren.
When touch is pressed
Constrain Attribute self.Position.X to game.Touches.touch 1.X
Constrain Attribute self.Position.Y to game.Touches.touch 1.Y
Then your Particles Behaviour. (In Velocity/Position Direction, put random(0,360); and Spawn Rate, Particle Startup time to 0).
Hopefully that's what you're after. :-)
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps