Trail direction help
Matti91
Member, PRO Posts: 14
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
@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.
My Blog / App Store / Google Play
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 :-)
Anyone? I need to know if this is possible before I can continue my project...
@mathias.meisner give your particles a velocity in the x direction, so they move way from the actor.
MESSAGING, X-PLATFORM LEADERBOARDS, OFFLINE-TIMER, ANALYTICS and BACK-END CONTROL for your GameSalad projects
www.APPFORMATIVE.com
@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...
@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
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
@mathias.meisner, something like this?
If you have variable speeds, then particles will not work. The above uses spawned actors, matching the background speed.
MESSAGING, X-PLATFORM LEADERBOARDS, OFFLINE-TIMER, ANALYTICS and BACK-END CONTROL for your GameSalad projects
www.APPFORMATIVE.com