← Projectile & Cast VFX for Godot 4
Projectile & Cast VFX for Godot 4
Quick Start Guide · 36 presets from 15 projectiles · cast, fly, hit · Godot 4.3+ (tested in 4.7)
1. Install (1 minute)
- Copy the
addonsfolder into your Godot 4 project (it becomesres://addons/pd_projectile_vfx/). Copyaddons/pd_vfx_toolstoo. - Open
res://addons/pd_projectile_vfx/demo/demo.tscnand press F6: every preset labeled, each one fires every 2.5 s.demo/showcase.tscn= a spell battle built from the effects.
2. Use it without code
muzzle (1 m up by default). play() fires along the root's +X for travel meters (handy for tests).3. Use it from code
Fire at a target, react to the hit
var fx = preload("res://addons/pd_projectile_vfx/effects/Fireball_Orange.tscn").instantiate()
add_child(fx)
fx.global_position = global_position # the caster's feet
fx.launch(enemy.global_position + Vector3.UP) # cast, fly to the target, play the hit
fx.hit.connect(func(at): enemy.take_damage(10)) # signal on impact
fx.free_after_hit = true # remove the node 3 s after the hitResize or aim any effect (PDVFX helper)
var fx = PDVFX.spawn(preload("res://addons/pd_projectile_vfx/effects/Fireball_Orange.tscn"), self, hit_pos, 2.0)
PDVFX.set_scale(fx, 0.5) # resize (1.0 = original)
PDVFX.aim(fx, enemy.global_position) # point it at a targetFAQ
Which settings can I change?
On the root in the Inspector: speed, travel, muzzle, cast_time, arc_height (lobbed shots), curve (Homing Orbs bend apart), from_sky + sky_offset (Meteor falls onto the target), repeat_every / play_on_ready (demo loop).
What projectiles are included?
Fireball, Ice Shard, Lightning Bolt, Arcane Missile, Poison Glob, Holy Lance, Shadow Bolt, Wind Blade, Rock Throw, Water Orb, Homing Orbs, Spirit Arrow, Meteor, Charge Shot and Magic Bullet - 36 presets in several colors.
How do I recolor one?
Particles: the Quad material > Albedo > Color. Long shapes (lance, arrow, shard, blade): the MeshInstance3D material. Cast and Hit can be deleted if you only want the bolt.
Which renderer?
Forward+, Mobile and Compatibility (no Forward+-only features). Tested in Godot 4.7 (Compatibility).
Can I use it in a commercial game?
Yes. Use in personal and commercial projects. Do not resell or redistribute the files as-is.