kelgrim / TDS-Example

Godot GDScript example of shooting a spread shot in a topdown shooter game.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TDS-Example

Example of how to do a spread shot for a top down shooter in Godot

Assets can be found here, they are free for personal use. https://thomasgvd.itch.io/top-down-shooter

I stretched out the background image, so it doesn't look very good, but I just wanted to show the funcionality of the gun.

To use: Just run the Main.tscn. The gun in the characters hand will follow the players mouse position. If you press left mouse button, the gun will shoot.

The result will be somewhat like this:

screenshot

About

Godot GDScript example of shooting a spread shot in a topdown shooter game.


Languages

Language:GDScript 100.0%