1

Rotation

I. Rotation style

  • Three rotation is available in Kitten Editor.

  1. All around
  • The sprite rotates clockwise or counterclockwise at a given angle.

  1. Left-right
  • As the sprite angle changes, the sprite only flips left and right.

  1. Don't rotate
  • In this case, rotation block is not functioning.

(Yes, the sprite would not rotate.)

II. Sprite upside down

1. Why would the sprite bounce upside down when it meets the edge?

In Motion blocks, we have known "if on edge, bounce" block. But when new trainees use this block, they may discover that the sprite would bounce upside down when it meets the edge.

This is because the default rotation style is "all around". Under this circumstence, the sprite would bounce upside down. (See picture below)

2. How to solve this problem?

The best way to solve this problem is to change the rotation style to "left-tight". There are two methods to achieve it:

  • Change the rotation mode to "left-right".

  • Use "set rotation style to [left-right]" block.

After changing to "left-right" rotation style: