How do I Make My Player Have A Particle Trail?

  • How do I make my player have a particle trail which follows behind the player, changes direction based on the movement of the player (left and right) and only appears when the player is moving/jumping/falling (also disappear when player stands still)? Thanks!

  • Only one simple command:

    "Player" Movement speed > 0 >>>

    - "Player" spawn "Particle" on layer n (Image Point x)

    - "Particle" move behind "Player"

    Where the "Particle" object is a Sprite with FADE behaviour, that disappears after a certain time.

    Change the duration of the fade, affects the length of the trail.

    "Player" is a Sprite with a Movement behaviour (8Direction, Car, Platform, etc).

    For the trail direction, this isn't necessary because the trail always goes in the opposite direction of the motion.

    I also made a capx: dropbox.com/s/ajc71c4lg8ec9ze/help.capx

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Only one simple command:

    >

    > "Player" Movement speed > 0 >>>

    > - "Player" spawn "Particle" on layer n (Image Point x)

    > - "Particle" move behind "Player"

    >

    >

    Where the "Particle" object is a Sprite with FADE behaviour, that disappears after a certain time.

    Change the duration of the fade, affects the length of the trail.

    "Player" is a Sprite with a Movement behaviour (8Direction, Car, Platform, etc).

    For the trail direction, this isn't necessary because the trail always goes in the opposite direction of the motion.

    I also made a capx: dropbox.com/s/ajc71c4lg8ec9 ... .capx?dl=0

    Thanks for the quick reply, I will try this out!

  • Did that work? p-p

  • Did that work? p-p

    It worked well but I was looking for one like 'Geometry Dash' where it bursts out behind like particles. However, I've tried doing it with particles but I cannot get it to go in the opposite direction of the player. Do you have any way to do this? Thanks

  • Oh, so you want particles?

    You need only two objects for that too (Sprite, Particle)

    Sprite - Platform is moving >>>

    - Particle | set position to (Sprite.X, Sprite.Y)

    - Particle | set rate to 35

    - Particle | set angle to Sprite.Platform.MovingAngle + 180 degrees

    Else >>>

    - Particle | set rate to 0

    When is moving, the particle is set to the Sprite position, and the rate is set to normal. Also, the angle is set to the opposite of the Sprite moving angle.

    When isn't moving, the particle rate is set to zero, and it doesn't appear.

    LINK: https://www.dropbox.com/s/ajc71c4lg8ec9ze/help.capx?dl=0

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