Giter Site home page Giter Site logo

scottkunkel / spine Goto Github PK

View Code? Open in Web Editor NEW

This project forked from chanon/spine

7.0 2.0 3.0 8.32 MB

Spine module for godot game engine, modified to allow adding children and manipulating slots.

License: Other

Python 0.02% C 87.62% C++ 12.36%

spine's Introduction

DEPRECATED, NOT TO BE used.

Please use https://github.com/scottkunkel/spine_runtime instead!

Added Functionality in this Fork

This version of the Godot Spine module allows:

1. Adding normal Godot nodes (Node2Ds) as children of Spine Slots.

Example:

	var sprite = Sprite.new()
	sprite.rotation_degrees = 45
	sprite.position.y = 90
	sprite.texture = load("res://machine_gun.png")	
	$Spine.add_node_to_slot("left-hand", sprite)

The added node will respect the slot's draw order and the parent bone's transform. This allows children Godot nodes to appear between the Spine character's body parts.

2. Programmatically manipulating slot nodes.

The Spine instance will have children nodes named after Spine slots which can be manipulated.

Examples:

	# make face red
	$Spine.get_node("head").self_modulate = Color(1.0, 0, 0)
  
	# make right arm and hand appear above environment
	$Spine.get_node("right-arm").z_index = 1000
	$Spine.get_node("right-hand").z_index = 1000

Original README Below

This module adds Spine animation support for godot game engine 3.0. It has been tested with Godot 3.0.2, but may contain bugs. The 2.1 module is also avaiable in the 2.1 branch

Current Spine runtime version for master branch 3.6.52.1 (Github link). Current Spine runtime version for 2.1 branch 3.5.51.

About the license

This module is forked from sanikoyes's godot branch and some of the code is forked from godot-spine-module. Both of the code are declared as MIT license.

The license of this module is under the Spine Runtimes Software License.

Usage

Add this code under modules/spine in your Godot source tree. You may either copy it or use git submodule add.

Build Godot using scons platform=x11 tools=yes target=release_debug or whatever build options you prefer.

Use the Spine type in your scene tree and load your animation into it as a resource.

Further reference

The Spine API Reference is useful to learning more about how the code works.

spine's People

Contributors

arthurtemple avatar chanon avatar danielytics avatar geequlim avatar obinnaemelumadu avatar scottkunkel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.