Jump to content

Strange Error on Pointer Position


Chupup Games
 Share

Recommended Posts

Hi,

 

if game.input.x is > 100 and game.input.y < 150 i get this error:

 

  1. Uncaught TypeError: Cannot read property 'uuid' of null phaser.js:21324

 

In the other cases everything works fine. Can anybody explain this to me?

 

(By the way, i'm using the new Phaser 1.1.4 Dev)

 
function update(){if (game.input.x > 100) {if (game.input.y < 150) {player.y = 192;player.animations.play('walk-look-up', 5, true);}else {player.y = 200;player.animations.play('walk-look-down', 5, true);} }else {if (game.input.y < 150) {player.y = 192;player.animations.play('idle-look-up', 5, true);}else {player.y = 200;player.animations.play('idle-look-down', 5, true);}}} 
Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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