Getting 2D light to stay on the player (Like theyre holding a lantern)

ManiacBananaManiacBanana Posts: 11Member

Hello again! I'm trying to make a sort of spooky game where the player is one of the few light sources. How do you get the light source to follow the player efficiently without stuttering?
Thanks!

Comments

  • MegalomaniakMegalomaniak Posts: 2,028Admin

    The most obvious way would be to parent the light source to the player, but not sure if it would resolve any stuttering. A better question to ask here would be what might cause the stuttering.

  • ManiacBananaManiacBanana Posts: 11Member

    @Megalomaniak said:
    The most obvious way would be to parent the light source to the player, but not sure if it would resolve any stuttering. A better question to ask here would be what might cause the stuttering.

    Oh right. I thought i tried the parenting thing but clearly i messed it up somehow haha. Thanks!

  • ManiacBananaManiacBanana Posts: 11Member

    It works now that I parented it properly

Leave a Comment

BoldItalicStrikethroughOrdered listUnordered list
Emoji
Image
Align leftAlign centerAlign rightToggle HTML viewToggle full pageToggle lights
Drop image/file