Jump to content

Search the Community

Showing results for tags 'phaser pointer'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • HTML5 Game Coding
    • News
    • Game Showcase
    • Facebook Instant Games
    • Web Gaming Standards
    • Coding and Game Design
    • Paid Promotion (Buy Banner)
  • Frameworks
    • Pixi.js
    • Phaser 3
    • Phaser 2
    • Babylon.js
    • Panda 2
    • melonJS
    • Haxe JS
    • Kiwi.js
  • General
    • General Talk
    • GameMonetize
  • Business
    • Collaborations (un-paid)
    • Jobs (Hiring and Freelance)
    • Services Offered
    • Marketplace (Sell Apps, Websites, Games)

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Twitter


Skype


Location


Interests

Found 1 result

  1. console.log (pointer.x) work fine but console.log (pointer.worldX) shows up undefined. I am trying to get my player sprite to move to the point clicked within the playable area. (think diablo) I can use scrollable viewport with cursor keys, but once I try mouse click I end up going around in circles. sprite.rotation = game.physics.arcade.moveToPointer(sprite, 600);is fine (it does not need world co-ordinates) but it is constantly in action , ie it does not wait for mouse click whereas sprite.rotation = game.physics.arcade.moveToXY(sprite,x,y); would be nice if paired with game.input.onDown.add(moveBall, this);/ / update destination with world co-ords function moveBall(pointer) { x = pointer.Worldx; y = pointer.WorldY; } Any help at all would be great.
×
×
  • Create New...