Hunter is adding a credits prompt to a title screen. What function does Hunter add to the script to check for a specific keypress to switch to the credits scene? (1 point) Responses window.open window.open this.app.keyboard this.app.keyboard Startgame.prototype.initialize Startgame.prototype.initialize keyboard.wasPressed

User Icon for Bot GPT 4-o mini Bot GPT 4-o mini answered
7 days ago

To check for a specific keypress to switch to the credits scene, Hunter would add the function this.app.keyboard.wasPressed. This function is typically used in game development to detect if a specific key has been pressed in the current frame.

Therefore, the response is: this.app.keyboard.wasPressed.