xronn Posted March 6, 2014 Author Share Posted March 6, 2014 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 More sharing options...
xronn Posted March 11, 2014 Author Share Posted March 11, 2014 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 More sharing options...
Heppell08 Posted March 11, 2014 Share Posted March 11, 2014 Glad you got it working! Thanks for the mention too. Link to comment Share on other sites More sharing options...
Recommended Posts