Git Product home page Git Product logo

creature_unity's People

Contributors

jychongmidas avatar kestrelm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

creature_unity's Issues

Unity SetActiveAnimation and Blending

CreatureRenderer.SetActiveAnimation() needs to call creature_manager.SetAutoBlending(false);, otherwise if you blend two animations, and later call SetActiveAnimation in order to do a non-blending transition, it will loop the previously blended animation improperly (since blending will still be set to true) instead of using the new animation you set.

Unity Static Event Triggering

In CreatureGameController.cs:
public static event eventTrigger OnEventTrigger;

This needs to have the "static" tag removed from it. With static enabled, if you ever have multiple Creature-animated sprites in the scene, you will have events triggering on all of them when it's triggered for a single instance. Without static, it properly triggers on a single Creature instance.

Overlay Animations

Hello! Like most of game studios we have this problem using Creature:

We have a character with 4 animations : a "Run" animation, a
"Jump"animation, a "Shoot with Gun" animation and a "Shoot an arrow with
elbow" animation.

In theory we should make the animation Run( or jump) being OVERWRITTEN by
the animation " Shoot with gun" JUST for the arms whenever it happens at
any time! Usually this is achieved with the Layers in Mecanim in Unity.
But How Can I manage this situation? You don't have any tuturial about
it, in your tutorial you simply blend between two animations which is
almost never the case in games where you need to change the shooting
weapon.

How can we address this? Thank you very much.

Unity Layers Override

It has been added the functionality of overriding an animation for certain bones ( useful in runner games, where we have a layer for the arms shooting and the lower layer for the body) but this is accessible only via code.

In unity in mecanim there is already a Layer system where one can set Override/Additive layer where you can set the animation on different layers and it the upper layer has an animation just for the arms it will automatically override the animation for the arms at the lower layer.

It would be cool to make use of this in mecanim instead of the code.

Unity Animation Event Triggering

In the CreatureFrameCallback class, this line:
if((int)Math.Round(frameIn) >= frameIn)

needs to be changed to:

if((int)Math.Round(frameIn) >= frame)

Otherwise, animation events trigger randomly/sporadically, instead of at the intended time.

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.