<aside> 📌 Items marked with a ☄️are exclusive to the BLAST! version. Items marked with a 🌀 will disappear in future versions.
</aside>
Properties :
Speed : bullet speed
Scale : bullet scale
Angle : bullet angle upon shooting
Groups : add entries if you want your bullets to be part of groups.
☄️Custom Data : Data added by [☄️ Custom Bullet Props Data : dictionary of data that will be appended to all Bullet Props in the inspector. Imagine you want all your bullets to have a “coolness” value, which your game needs. Add a “coolness” string key to this dictionary, with or without a default value (any type). And this custom data will be modifiable in every Bullet Prop inspector.](https://app.notion.com/p/Custom-Bullet-Props-Data-dictionary-of-data-that-will-be-appended-to-all-in-the-inspector-Imagin-d763d9c999f6446ab5fbf4caa0a5e161). Do not add keys to this dictionary, they will be removed, add them in Spawning.custom_bullet_props_data instead.
Visuals :
To use these properties correctly, check Animating bullets.
Spawn is the spawning animation, Shoot is the shooting animation, delete is the destroying animation, idle is the standard bullet animation, waiting is the animation when it’s been spawned but not yet shot.
☄️Idle/Spawn/Shoot/Waiting/Delete : ☄️AnimState for each state of a bullet’s life.
☄️More : an array of ☄️AnimStates. They will be globally registered. You can use these animations with [☄️change_animation(bullet:Dictionary, anim ID:String, RID): provide the bullet dictionnary and bullet RID and you can change the bullet’s animation with a new animation ID. It’s the ID written in the ☄️AnimState. It can be any previously registered ID from any bullet.](https://app.notion.com/p/change_animation-bullet-Dictionary-anim-ID-String-RID-provide-the-bullet-dictionnary-and-bullet--a90a59fcd2eb4918aa3d1147b1f6deeb) but a more efficient function will be added in the future.
🌀The textures, collision shapes and sounds of every state the bullet can be in.
Modulate : gradient to determine the bullet’s color. Use a same-color gradient to use a single color.
<aside> 💡 Tip : save your gradient if you want to reuse it later
</aside>
Modulate loop : does it go back to the start of the gradient once its end is reached ?
☄️No rotation : the bullet’s sprite will not rotate no matter what.
☄️ Z Index : Z Index of the bullet. A value of 0 will automatically change to the z_index value of Spawning.
<aside> ⚠️
Putting your bullets on different z levels will cost in performance and memory due to the way _draw() calls work in Godot. It’s better to keep this value at 0 and change the global z_index of Spawning.tscn.
</aside>
☄️Trails :
Physics :
Bounces : number of times the bullet will bounce on walls
<aside> ⚠️
Tilemap collisions tend to lead to less accurate bounces. Prefer using Collision box or polygon nodes.
</aside>
No collision : bullets won’t have a collision. This is used for purely visual bullets.
<aside>
💡 For optimisation reason, modifying the property above at runtime with *switch_property_of_bullet()* will result in undefined behavior.
</aside>
Rotating speed : if the bullet will spin on itself. Purely visual, doesn’t affect physics.
☄️Only Spin Sprite : make the rotating speed property only spin the sprite and not the collision shape. Reduces the impact on performances.
☄️Weight : Change how gravity affects the bullet. 0 will make the bullets unaffected by gravity. >1 will make it more affected, <1 will make it less affected. Just like in real life, because that’s how physics work /s 🙄
Destruction :
bounce > 0)<aside> 💡 Destruction properties here can be used conjointly.
</aside>
Movement :
Direction Equation : bullet trajectory from math function. Takes x as variable. Ex: sin(x)
☄️The curve doesn’t change depending on the bullet’s speed unlike versions below V4.3.
☄️ Angular Equation : math equation calculating the bullet rotation. Result is added to the rotation at each frame.
<aside> ☄️ You can find examples of equations in Using math equations
</aside>
<aside> 💡 Though nothing prevents you from using them together, the Movement properties are made to be used separately.
</aside>
Speed Multiplier : curve. X is the delta, increases with each frame, Y is the speed of the bullet at time X. Negative speeds are possible. (it doesn’t really multiply anything anymore, the name stayed like that for compatibility’s sake. Y is the definitive speed at time X.)
Speed multi scale : X on the curve is between 0 and 1. This variable multiplies X so the curve interpolation takes more time. It basically controls the distance over which the speed will be changed. Note that this is not an absolute value in the sense that writing “300” won’t mean the speed modifier acts during 300 pixels. Instead, it means that the speed modifier will acts a distance 300 times superior as it would normally do.
Speed multi iterations : the number of times the speed multiplier will stay active. If above 1, once it reaches the end of the curve, it loops back to the beginning.
☄️Depth system : (see ☄️Depth system)
Triggers :
Homing :
*time start* property), or it can check for the nearest all the time ("*anywhen*") (but that last one will have an impact on performances).Time start is > 0, the bullet won’t try to detect its target before that time.start_homing(group:String): sends a signal to the homing bullets that they must start homing towards their target. Only bullets whose start_signal property matches the group argument will be affected. See [☄️Start signal : if something is written there, the bullet will listen for ‣ and start homing when the signal is sent. If the Time start property is enabled, the bullet will start homing after the delay or at the signal, whatever happens first.](https://app.notion.com/p/Start-signal-if-something-is-written-there-the-bullet-will-listen-for-and-start-homing-when-the--08a779d0e2ae4f9c9d3292b96190744f).](https://app.notion.com/p/start_homing-group-String-sends-a-signal-to-the-homing-bullets-that-they-must-start-homing-towards-037ecd6872c2405c8a4e8de01cda2744) and start homing when the signal is sent. If the Time start property is enabled, the bullet will start homing after the delay or at the signal, whatever happens first.range.x, the bullet will give up on its target and stop homing. If the distance is smaller than range.y, the bullet will consider its target reached and stop homing. 20 is a minimum value. Any lower value will result in the bullet not reliably registering that the target it reached.randf_range(-Imprecision, Imprecision) to simulate imprecision in targeting.Advanced scale :
Advanced