Skip to content

Latest commit

 

History

History
44 lines (35 loc) · 2.1 KB

File metadata and controls

44 lines (35 loc) · 2.1 KB

An instance that bullet behavior are applied has the behavior of moving in a specified direction at a given speed. So Bullet is a very much alike name, an instance applies the bullet behavior will move like a bullet.

Properties pane:

  • Speed: the default speed of the bullet, in pixels per second. The default value is 400, which represents a movement of 400 pixels per second.
  • Acceleration: the acceleration at which the bullet moves. The default value is 0, and it's moving at a constant speed. It calls acceleration when the value is positive and deceleration when the value is negative.
  • Gravity: When a bullet is moving, its gravitational force is fixed in the negative direction of the Y axis. For example, if the bullet is flying horizontally, its trajectory should be a parabola under the influence of gravity. The greater the gravity, the greater the curve of the parabola. When the default gravity is zero, and the bullet stays in a straight line.
  • Default running angle: sets the default running angle of the bullet. The default value is 0. The running angle of the bullet is independent of the angle of the instance itself.

Bullet conditions:

Comparative running speed:

Compares the bullet speed of the selected instance with the specified value. 【 continuous trigger 】

Comparative running distance:

Compares the bullet distance of the selected instance with the specified value. The measurement of the running distance begins with the creation of the bullet. 【 continuous trigger 】


Bullet movement:

Running speed:

Set the running speed of the bullet.

Acceleration:

Set the acceleration of the bullet.

Running angle:

Set the running angle of the bullet.

Gravity:

Set the force of gravity on a bullet as it moves.

Enable/disable:

Set whether the bullet behavior is available.