Skip to content

Melon-The-Dev/Fire-Bullets-Godot-Plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Fire-Bullets-Godot-Plugin

Plugin for godot that allows you to quickly add shooting to your game

This tool will allow you to quickly make a node shoot a bullet(s).

with: Gun node:

number of bullets to be fired
cooldown(cooldown before firing again)
angle variance(for accurate/inaccurate shots)
customizable shooting arc(like in shotguns)
customizable spawn point
debugs! - for spawnpoint and shoot_arc

Bullet class:

delete after( time to delete the bullet node after shooting )
  • Documentation on all methods!

setup:

install the addon in the assetlib or in the github(code -> download zip)
then put that in your addons/ folder in you godot project:)

How to use:

1.create a new scene and make a Area2D as its root(also make a script for it) and make sure the script extends from the *Bullet* class
2.in another scene, add the gun node and put your bullet scene in the "bullet" paramater in the inspector. 
3.then set the other paramters of the gun node to your fit your game.
4.you can fire the gun by calling Gun.shoot(speed,angle)

thats all! more description in the documentation! also if you need help, visit my discord:) https://discord.gg/rKVSzgHDMy

About

Plugin for godot that allows you to quickly add shooting to your game

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published