How Do You Make Particles Spawn Behind Actor?

AppsterDudeAppsterDude Member Posts: 84
edited February 2012 in Working with GS (Mac)
Is it Possible?

Comments

  • POMPOM Member Posts: 2,599
    No ,
    But as a workaround you can tell another actor (that is behind your actor) to spawn the particles for your even .

    Roy.
  • simo103simo103 Member, PRO Posts: 1,331
    @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.
  • AppsterDudeAppsterDude Member Posts: 84
    How do i constrain the actor to my other actor? i can't remember how to do it. lol!
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    edited February 2012
    Hi @ryguy140

    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

  • simo103simo103 Member, PRO Posts: 1,331
    @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!
  • AppsterDudeAppsterDude Member Posts: 84
    Can Someone Please make A Template because i still don't get what your trying to say. I'm a hard learner..lol
  • POMPOM Member Posts: 2,599
    "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

    Roy.
  • AppsterDudeAppsterDude Member Posts: 84
    Thanks!
Sign In or Register to comment.