@ryguy140 ... you need to pull a trick. Have a small actor with the particle rules/behaviour and constrain it to your heroes X and Y and make sure it is under the hero actor in the Layers. Particles unfortunately come out on top not behind an actor so you have to do this workaround.
Via the behaviour itself, no (as you've no doubt found out); there are a couple of workarounds that I can think of, both similar: in the rules just before you use the particles behaviour, spawn a duplicate actor with constrain to the actor on screen,s x and y co-ordinates (or change attributes behaviour for x and y if the actor on-screen isn't moving). The second way is using constain (or change depending) x,y to match in a duplicate actor on scene but out of screen area, triggered with a boolean. Hope that helps you out.
P.S We're all hoping that the extra feature of spawning behind the carrier actor will be added some time in the future; we can only hope...
@everybody ..... lol .... @ryguy140 ... POM responding was enough to certify this as correct, tshirt responding establishes this as a universal fact .... my 2 cents ... well worth about 2 cents but happy to know I was correct also!
"How do i constrain the actor to my other actor? i can't remember how to do it. lol!"
Make 2 game attributes - real - Hero X Hero Y
In your hero actor make these rules: Constrain Game.Hero.X to Self.Position.X Constrain Game.Hero.Y to Self.Position.Y
Now in your "particles actor" (that needs to be behind your hero) , put another 2 constrains : Constrain Self.Position.X to Game.Hero.X Constrain Self.Position.Y to Game.Hero.Y
Comments
But as a workaround you can tell another actor (that is behind your actor) to spawn the particles for your even .
Roy.
Via the behaviour itself, no (as you've no doubt found out); there are a couple of workarounds that I can think of, both similar: in the rules just before you use the particles behaviour, spawn a duplicate actor with constrain to the actor on screen,s x and y co-ordinates (or change attributes behaviour for x and y if the actor on-screen isn't moving). The second way is using constain (or change depending) x,y to match in a duplicate actor on scene but out of screen area, triggered with a boolean. Hope that helps you out.
P.S We're all hoping that the extra feature of spawning behind the carrier actor will be added some time in the future; we can only hope...
Edit: beaten to it by 3 people this time!
----------------------------------------------------------------------------
iPad app: End of the Earth –•– http://davidgriffinapps.co.uk/
----------------------------------------------------------------------------
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
Make 2 game attributes - real -
Hero X
Hero Y
In your hero actor make these rules:
Constrain Game.Hero.X to Self.Position.X
Constrain Game.Hero.Y to Self.Position.Y
Now in your "particles actor" (that needs to be behind your hero) , put another 2 constrains :
Constrain Self.Position.X to Game.Hero.X
Constrain Self.Position.Y to Game.Hero.Y
Roy.