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.
- 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.
Compares the bullet speed of the selected instance with the specified value. 【 continuous trigger 】
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 】
Set the running speed of the bullet.
Set the acceleration of the bullet.
Set the running angle of the bullet.