Like a skier skiing down a hill he leaves a trail in the snow
What I tried :
I created a sprite for the trail and every 0.1 second I create a sprite and pin it to the background ( angle and position of the player). The issue that i'm running into is that when I reset the position of the background all the trail sprites are still pinned and now I have two trail and more and more every time I cycle is done, If I destroy the trail sprites when I reset the position of the background I lose continuity of the trail.
Every second?? Did you mean every tick?
You can add Fade behavior to that ski trail sprite, to make it slowly fade away and get destroyed after a few seconds.
Also instead of Pin you can add Bullet behavior with the same speed and direction as your background moves.
every 0.1 second ( num lock was not active :p ), every tick is too much
getting there... now there is a new issue, so I set the trail sprite angle of mvt to the the playerangle -90 when i turn left or right the trail does not follow the mvt of the player any more
I made quite a lot of changes, enjoy!
https://www.dropbox.com/s/dtcc5uplj25gw ... .capx?dl=0
Develop games in your browser. Powerful, performant & highly capable.
Thx man !!! you are amazing !!!