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

Solved Players Hight

Discussion in 'Development' started by Jonas, Apr 16, 2017.

  1. Jonas

    Jonas Baby Zombie

    Messages:
    192
    How can i change players size of hight ?
     
    Last edited: Apr 16, 2017
  2. [deleted]

    [deleted] Guest

    Hi,
    You mean how to teleport the Player at his position but higher?
     
  3. Thunder33345

    Thunder33345 Moderator Staff Member

    Messages:
    2,137
    GitHub:
    Thunder33345
    or change the player size of height
     
  4. kaleb418

    kaleb418 Spider Jockey

    Messages:
    29
    GitHub:
    kaleb418
    Your question is rather unclear - do you mean to teleport them higher, or to change the player's physical height, such as make him taller?
     
    [deleted] likes this.
  5. Jonas

    Jonas Baby Zombie

    Messages:
    192
    Yes i 've change that, sry
     
  6. jasonwynn10

    jasonwynn10 Moderator Poggit Reviewer

    Messages:
    1,489
    GitHub:
    jasonwynn10
    $player->setScale(6);
     
    StuckDexter and Jonas like this.
  7. Jonas

    Jonas Baby Zombie

    Messages:
    192
    Thank you, its work
     
  8. Jonas

    Jonas Baby Zombie

    Messages:
    192
    And when i 'll make they smaller ?
     
    Last edited: Apr 16, 2017
  9. kaleb418

    kaleb418 Spider Jockey

    Messages:
    29
    GitHub:
    kaleb418
    Use a smaller integer. Idk what the default number is, maybe 1?
     
  10. Jonas

    Jonas Baby Zombie

    Messages:
    192
    1 is default
     
    kaleb418 likes this.
  11. DanielYTK

    DanielYTK Zombie

    Messages:
    227
    $player->setScale(-1); ?
     
  12. Sandertv

    Sandertv Zombie Pigman Poggit Reviewer

    Messages:
    786
    GitHub:
    Sandertv
    No, no, no. Think logically, 0 is nothing, 0 is invisible, how can the size be possibly -1?? :facepalm::facepalm:
     
    jasonwynn10 and HimbeersaftLP like this.
  13. DanielYTK

    DanielYTK Zombie

    Messages:
    227
    but 1 is default '-'
     
  14. SalmonDE

    SalmonDE Zombie Pigman

    Messages:
    739
    GitHub:
    SalmonDE
    I guess you should instead do $player->setScale(0.9);
     
  15. HimbeersaftLP

    HimbeersaftLP Fish

    Messages:
    2,402
    GitHub:
    HimbeersaftLP
    Ever heard of this innovative new thing called the "decimal point"?

    [​IMG]
     
  16. kaleb418

    kaleb418 Spider Jockey

    Messages:
    29
    GitHub:
    kaleb418
    Would it not be a floating point number? $player->setScale(.5);
    Think of it as multiplying, if you use 2, it multiplies by 2, or doubles the scale. If you multiply by 0.5, it divides the scale by 2, so it's half the size.
     
  17. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
    I don't think `.5` is a valid float literal syntax in PHP.

    And I have a question for everyone here: While you are teasing others for saying -1, have you really defined what "scale" means? Scale can be the scale of many things, from the linear scale of height to the quadratic scale of display area to the cubic scale of volume, or exponential scale or logarithmic scale. If it is exponential scale, -1 is very reasonable (although 0 would have to be the normal value)..
    According to Mojang's characteristic unpredictability [1], all kinds of scales would be reasonable :)
    [1]: How IP addresses were encoded

    I'm not saying that it's not linear scale. I just want to remind you to think twice before taking assumption as fact.
     
    kaleb418 and HimbeersaftLP like this.
  18. kaleb418

    kaleb418 Spider Jockey

    Messages:
    29
    GitHub:
    kaleb418
    I believe it's just a multiplicative scale, in which case a negative number would get you a negative "length," though that makes sense.
     
  19. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
    This is exactly what I'm saying. You "believe" without evidence, which is primarily assumption. This is a very undesirable attitude when working with programs, especially when it has something to do with Mojang. :p
     
    kaleb418 and HimbeersaftLP like this.
  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.