Jump to content

trap.frame == X Collision


xronn
 Share

Recommended Posts

I commented out all the spike sprite animations in the pre load and the main game, and it's still throwing this I'm not sure what it is but seems unrelated;

 

Phaser.AnimationParser.spriteSheet: width/height zero or width/height < given frameWidth/frameHeight

Link to comment
Share on other sites

I just wanted to update/close this topic a solution has been found remember this is for version 1.1.3

        if(currentTrap.currentFrame.index === 2)        {            console.log('getting spiked!');            hero.health -=1;            alert = 'Ouch!';        }

Thanks Heppell08 for all your help and time.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...