Welcome to Code Forum!

Join a community that supports you and your coding journey from day one. We strive to be a friendly, supportive community that empowers everyone to be better developers. By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

rotate

  1. Aleksi

    JavaScript Canvas rotate, image does not fill the canvas

    I am implementing a photo editor, where the image can be zoomed in, rotated and cropped. I am having trouble rotating a rectangular image 90° to the right and to the left. When rotating, the image does not maintain its aspect ratio and does not fill the canvas. The crop area is square shaped...
  2. U

    How to Make NPC Rotate Towards the Player With the Bullets Being Rotated as Well

    Hello. I have a NPC that, detect the player when its in a certian range, however I need it to rotate towards the player and aim the bullets at the player. Right now when the player is within range it starts shooting straight but not at the player. Here is the code for the NPC to shoot...
Back
Top Bottom