1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Particle around Player

Discussion in 'Development' started by dbcooper, Nov 16, 2018.

  1. dbcooper

    dbcooper Spider Jockey

    Messages:
    32
    GitHub:
    dbcooper
    Hello,

    I’ve been attempting to create a particle that sort of explodes around a player, but I havent been able to achieve that. Its either spawned beside, ontop or under the player.

    Any help is appreciated.
     
  2. jasonwynn10

    jasonwynn10 Moderator Poggit Reviewer

    Messages:
    1,489
    GitHub:
    jasonwynn10
    like a tnt particle?
     
  3. dbcooper

    dbcooper Spider Jockey

    Messages:
    32
    GitHub:
    dbcooper
    Yeah but like, I want it to kind of be around the player’s screen.
     
  4. dbcooper

    dbcooper Spider Jockey

    Messages:
    32
    GitHub:
    dbcooper
    upload_2018-11-18_13-2-49.png

    Or just anything that the player can actually see when on use of an item.
     
  5. jasonwynn10

    jasonwynn10 Moderator Poggit Reviewer

    Messages:
    1,489
    GitHub:
    jasonwynn10
    That would take some mathing skills. You'd have to account for the player's screen size and FOV to line the particles up correctly.

    Also, would only the one player be able to see the particles?


    To get the correct directional vector, you'll want to use Player->getDirectionVector()
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.