DeadZone

This topic contains 2 replies, has 2 voices, and was last updated by  Gabriel Kieruzel 1 month ago.

  • November 5, 2016 at 2:03 pm #157626

    Hello,

    Struggling to get working with spriteNode with custom class ‘DeadZone’.
    My intention was to put the SKSpriteNode at the end of level where player can jump thus lose life. I did what was described within the video.
    Created SkSpritenode, gave ‘opacity’ to ‘0’ then resized , then sat the physics body appropriately. Unfortunately when my character reaches the end and falls down he is not dying. Not sure where is my error.
    I’m pretty sure size of the sprite is big enough that the ‘hero’ does not overcome it.
    Maybe someone has/had this problem.

    Regards

  • November 8, 2016 at 2:42 pm #157701

    Did you view the project with physics bodies showing? Wondering if your dead zone is actually there at all. For example, if you had gravity toggled on, it might be falling endlessly from its original position.

  • November 8, 2016 at 4:52 pm #157709

    Hi,

    Thank for the tip, you were right.
    When I switched off ‘affected by gravity’ option all started to behave correctly.

    Regards.

You must be logged in to reply to this topic.