Jump to content

Car animation in Canvas


Guest FirefoxRocks

Recommended Posts

Guest FirefoxRocks

How do I go about doing something like this in HTML5/JS Canvas?http://www.actionscript.org/resources/arti...ment/Page1.htmlRight now I can make it so that when you press the arrow keys you move a rectangle around the canvas but that's not how a car drives...I can't seem to figure out how to rotate a shape, like how they do in ActionScript with the _rotation property. I tried the ctx.rotate(angle) function but that rotated the entire canvas and I'm not sure if that's what I want.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...