How do I make a dice turn just by pressing a button that results in the movement of a player

How do I make a dice turn just by pressing a button that results in the movement of a player
https://playcanvas.com/editor/code/1041674?tabs=122203288&line=2&col=16&error=true

@Ricardo_Reyes Welcome to Playcanvas. I think this tutorial may help with part of your question.

https://developer.playcanvas.com/en/tutorials/keyboard-input/

There are a lot of great tutorials on this page:
https://developer.playcanvas.com/en/tutorials/

Also, this forum has a bunch of valuable resources to search. More than willing to help. Let us know if this helps.

1 Like