[SOLVED] Hold instead of press

https://playcanvas.com/editor/project/951293

how do I make the planet keep rotating while LEFT or RIGHT is being pressed, rather than rotate once with every click?

Hello @MoonAlien822 ,

You want to take a look at isPressed() method. So instead of wasPressed() method you should use isPressed()

https://developer.playcanvas.com/en/api/pc.Mouse.html#isPressed

4 Likes