Jump to content

Search the Community

Showing results for tags 'user input'.

  • 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 2 results

  1. I can't seem to find ANY info on user input... Only camera stuff... How are supposed to handle user input that does NOT have to do with the camera... I still need to be able to get what keys what are pressed, what horizontal and vertical axis from gamepads and arrows keys, rotation from the mouse. I don't see ANY of that stuff in the API... Only camera... I get that the camera is important but if we don't attach a camera, how do we get all that user input... Or am i just supposed to make up my own (that would suck, i don't know all ins and outs of user inputs to be able to handle any input for my toolkit... Right now I'm just handle basic horizontal and vertical movement) But the camera seems LOADED with user input, how come it was designed to ONLY give access to those API on the camera... That seems funny Now i think i have to re-implement USER INPUT for my toolkit from scratch
  2. I'm making a cat themed game where users can choose their sprite by clicking a button, and the sprite will change color based on the value of the button they click. selectedCat is a global variable, and catClass is the class of the 3 buttons the user will click. I'm saving the data in local storage to the global selectedCat variable, and then trying to access it later when I initialize the player with player = game.add.sprite(32, game.world.height - 150, 'selectedCat'); . However, when I do that, I get an error message saying "texture with key selectedCat not found". I'm guessing that's because selectedCat isn't attached to any of the spritesheets, and the even though the spritesheets have the same variable names as the buttons do, they're not connected. How can I connect selectedCat to its corresponding spritesheets? Any help is much appreciated. submit_script.js game_script.js
×
×
  • Create New...