Solved Help with particle effects

Discussion in 'Plugin Development' started by TimJames, Apr 9, 2016.

Thread Status:
Not open for further replies.
  1. Offline

    TimJames

    Problem: Okay, I've scoured the internet for a solution but no dice. Basically, what i want to do is sort of append a certain particle to a player when they move. I can do this using a packet and runnable to set it to their location but when the player moves it creates this trail behind them of the particles until they despawn. I want the particle to stay at a constant appended location on the player. Since the effect is created clientside, I have no idea how to do this. I do know, however, it's possible because I've seen it on a popular server as a cape. Any help is appreciated. Just let me know if I'm being too vague and I'll post pictures of what I'm talking about.

    Thanks!
     
  2. Offline

    Abstract97

    @TimJames I think I know what you're talking about but do you mind posting the pictures anyway; so I can get a better understanding?
     
  3. Offline

    TimJames

    http://imgur.com/Ks3V87G
    This is what I'm talking about. The gray particles are appended to the player and when they move the effect doesnt create a trail behind them like if you were making a runnable particle effect.

    Sorry for any advertising that may have caused. I don't think the particular server has any issues with player count anyways lol.
     
  4. Offline

    Abstract97

    @TimJames How often is your runnable being called?
     
  5. Offline

    TimJames

    Every 5 ticks, but no matter how many times the runnable is called it's not going to stay attached to the player. It's spawning it at a location around the player not on the player itself and the client doesn't remove the particle fast enough to create the effect I'm desiring.
     
  6. Offline

    Abstract97

    @TimJames I think you may have to use protocol-lib to achieve this.
     
  7. Offline

    TimJames

    @Abstract97
    Okay, I was attempting to do all the code myself so i could learn a little more about packets and the extent of what I can actually achieve without using a lib, but if that's my only route I'll look into it further. Thanks for your help tho. If anyone else has some info about this please reply.
     
  8. Offline

    Zombie_Striker

    @TimJames
    Since particles are static objects when it comes to their location, there is no way around those "trials". You would need to choose a particle that is fast enough not to leave a long trail.
     
Thread Status:
Not open for further replies.

Share This Page