thanks! :) no i didnt add any instructions to the game
Hi. I took the a similar class and I like your animated hat. I used the cursor keys to flip and angle, and I originally used cursor keys for Windows, but switched to mouse clicks to flip and stop. WebGL did not like my cursor key input. Could you show me a code snippet to use? Thanks! Mine is called 'Snowboard' by hsquared.
if i understood correctly, you need a code example for the turning left/right with keyboard input instead of mouse?
in that case:
if (Input.GetKey(KeyCode.LeftArrow))
{
rb2d.AddTorque(torqueAmount * Time.deltaTime);
}
else if (Input.GetKey(KeyCode.RightArrow))
{
rb2d.AddTorque(-torqueAmount * Time.deltaTime);
}