Trail direction help

Matti91Matti91 Member, PRO Posts: 14
edited February 2016 in Working with GS (Mac)

Hi,

I'm creating a game that's sort of endless, so I made the background move and wrap instead of moving my actor.
I want my actor to have a trail, but since he in theory only is moving up and down now, the trail is over and under him. I need the trail to get behind him, since it looks like he is moving forward.

I searched around, and all I could find was some closed thread, where it says you have to create an invisible actor and link it to the main actor. I've done that now, but I cant get the trail to work right.

Can anyone help me?

Comments

  • mhedgesmhedges Raised on VCS Member Posts: 634

    @mathias.meisner ,

    Hello. Let's see if I understood your question right.

    If you are spawning a trail, your player actor should "Spawn Trail Actor" behind actor.

    If the characters are constantly on the screen, and don't need to be spawned, go to your scene, and on the Game/Scene buttons, select Scene, and make sure your player actor is on top of the other actors.

  • Matti91Matti91 Member, PRO Posts: 14

    Hello @mhedges

    I'm using the Particles behavior to create a trail behind my actor. My background is moving backwards so it looks like my actor is moving forward. He is not, he is only moving up and down. I want the trail to look like my actor is moving forwards as well. I hope that it's possible, but I don't know how to do it.

    I hope it's understandable :-)

  • Matti91Matti91 Member, PRO Posts: 14

    Anyone? I need to know if this is possible before I can continue my project...

  • HopscotchHopscotch Member, PRO Posts: 2,782

    @mathias.meisner give your particles a velocity in the x direction, so they move way from the actor.

  • Matti91Matti91 Member, PRO Posts: 14

    @Hopscotch thank you for your answer. I've tried to play around with the numbers, but I just can't get it to work like I want...

  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772

    @mathias.meisner, not sure if it will help but I have a free fire and smoke particle effect on my website if you want to download it and tear into it to see how it works. The fire and smoke move along the Y axis, and it sounds like you'd want your to move along the X but the principle is the same.

    http://www.imaginelabs.rocks/?product=fire-and-smoke-particle-effects

  • HopscotchHopscotch Member, PRO Posts: 2,782
    edited February 2016

    @mathias.meisner, something like this?

    If you have variable speeds, then particles will not work. The above uses spawned actors, matching the background speed.

Sign In or Register to comment.