Is there a way to give a sprite a trail?

0 favourites
From the Asset Store
Minimal Sprite Font with Stroke for Pixel Art games.
  • Is there a way to do this? I'm about to head out so I can't look it up. Could someone answer this for me?

    Thanks for your time!

  • I'm also looking for something similar, if i understood you correctly. Like, the player object constantly creates new objects, which fades within x seconds?

  • Yes, that's exactly what I'm looking for. I'll let you know if I find a way.

  • I dont have the time to experiment, but try fooling around with emitting the same object from a desired angle, from the player, then fading it.

    I assume you could start with making a single object, create the desired behaviour (movement, scaling, fadeout), then for example make the player object create that object every tick while moving or something.

    Im just thinking loudly here :)

  • EDIT:

    removed lame pseudocode and added example:

    done :D

    this ofcourse spawns MANY sprites... so you might need to adjust the values to make it look good / don't kill the performance

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Just make a event that for every x seconds create a the trail sprite.

    Set the trail to head of in a direction and fade after x seconds.

    I do this to simulate smoke.

  • easy peasy


    need Canvas Plugin

    (will be a lot faster once Canvas will be webGL compatible)Yann2011-12-15 12:07:21

  • Nice Yann :D

    I wish we could use canvas for uploads to the arcade... same with spritefont :/

  • trailNoCanvas.capx

    Probably same idea as Ize. And I suspect it's even better than the Canvas solution fps wise.

  • Thanks for the example Yann, it works great!

  • I got much easier way, and on my 2k4 PC it's running smoothly.

    I'm too lazy to post example.

    Make another layer and put your player in it, leave the trail object in layer 0

    Add fade behavior to the object you want to be "trail", modify settings how you want.

    Event sheet:

    1.System->Every tick|Player->Spawn another object->trail


    In the same System->Every tick add action:

    Trail->Move to layer 0 (This makes the trail go behind the player)

    If you are adding objects, just change the trail's "Move to layer" action.

  • Drawing a Trajectory Arc Trail

    Can someone point me in the right direction of how to make a trajectory trail that helps you aim an angry bird. Could the dotted arc be drawn with Canvas?


    I found a formula that could do the trick. I'll see if i can replicate it in C2 :)

    <img src="" border="0">

  • NECROKRIEG: Your request in not fully relevant with the current thread. Anyway here is a link you might want to have a look at.

  • Kyatric Thanks for the link, appreciated. I really could not find that post because I could not articulate the Title of the Thread. I did not know what Parabola was until now. Also 'Tracjectory' is spelt wrong in the title. This thread is great, Im improving my Math vocabulary! :D

  • Why not particules ?


Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)