Jump to content

Search the Community

Showing results for tags 'simulate'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • HTML5 Game Coding
    • News
    • Game Showcase
    • Facebook Instant Games
    • Web Gaming Standards
    • Coding and Game Design
  • Frameworks
    • Pixi.js
    • Phaser 3
    • Phaser 2
    • 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


Last Updated

  • Start


Filter by number of...


  • Start



Website URL





Found 1 result

  1. I'm wondering if there is a way of simulating a mouse click (or touch) on a sprite with a keyboard press. For instance, imagine I have two images, both with a function that when I click on them, the sprite I clicked gets killed. I wanted to click "1" and the first would get killed, and then "2" and the second would get killed. I guess the easier way to achieve this is to simulate a click event in the corresponding sprite when I press '1' or '2', but I don't know how to do it. Is there a way of simulating a mouse click in a specific position (x and y) or on a sprite by a keyboard press?
  • Create New...