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

how to create helix particle

Discussion in 'Development' started by Levi, Jul 2, 2018.

  1. Levi

    Levi Skeleton

    Messages:
    955
    GitHub:
    captainleviftw
    how do you make a helix particle that goes around something?

    i tried this
    PHP:
    $level $this->level;
            
    $location $this->location;
            
    $radio 1;
            for (
    $y 0$y 10$y += 0.2) {
                
    $x $radio cos($y);
                
    $z $radio sin($y);
                
    $level->addParticle(new FlameParticle($location->add($x$y$z)));
    but it just makes helix straight and not slowly go around in a circle or something
     
  2. MalakasPlayzMCPE

    MalakasPlayzMCPE Zombie Pigman

    Messages:
    667
    Change the ticks on the scheduler... like
    PHP:
     $this->getScheduler()->scheduleRepeatingTask(new FileName($this$player->getLevel(), $player->getPosition()), 10);
     
    I am not 100% sure if that's your code. Just change the number you have to 10.
     
    Last edited: Jul 2, 2018
  3. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
    How does this thread have anything to do with scheduler?
     
    corytortoise, jasonwynn10 and Levi like this.
  4. MalakasPlayzMCPE

    MalakasPlayzMCPE Zombie Pigman

    Messages:
    667
     
  5. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
    From what I understand, straight and going around refers to whether it is a straight line or a helix, not whether it is dynamic and moving.
     
  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.