Skip to content

Plugins, tricks, and hacks for doing various things in the godot engine

License

Notifications You must be signed in to change notification settings

DanielKinsman/godot-tricks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

godot-tricks

Plugins, tricks, and hacks for doing various things in the godot engine

FlippablePhysics2D

For working around the fact that you can't easily "flip" or "mirror" physics bodies like RigidBody2D. It works via rotating and translating children of such nodes instead of mirroring them via scale(-1, 1).

As such it has several limitations, primarily that it only works for symmetrical children like a CollisionShape2D with a RectangleShape2D property, not one with an asymetrical hand drawn ConvexPolygonShape2D.

To use it, copy the files into your project (or better yet, git submodule add it from here), then change the extends RigidBody2D in your node's script to extends "godot-flippable-physics/FlippablePhysics2D.gd".FlippableRigidBody2D. See the example project inside.

Lazy input settings

An ugly but quick way of putting user reconfiguration of inputs (keyboard, mouse, joystick) into your project.

screenshot

screenshot2

Just install it as a plugin and drop a InputMenu node into any scene and it will create a menu allowing reconfiguraiton of any input actions your project defines. The config is persisted to user://input_map.json. Load it on startup by doing this:

const InputMenu = preload("addons/godot-lazy-input-settings/input_menu.gd")
...
InputMenu.load_input_map_from_file("user://input_map.json")

To make the "default" button work properly, save a input_map.json to res://default_input_map.json.

About

Plugins, tricks, and hacks for doing various things in the godot engine

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published