Jump to content

loodakrawa

Members
  • Content Count

    161
  • Joined

  • Last visited

  • Days Won

    19

loodakrawa last won the day on September 12 2017

loodakrawa had the most liked content!

2 Followers

About loodakrawa

  • Rank
    Advanced Member

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Well, there's nothing built-in if that's what you're asking. Key frames are not special in regards to the actual animation, especially since you can advance the simulation with any delta time which can cause the current frame to never land exactly on a keyframe. That being said, you can probably achieve it by inspecting the keyframe times yourself via animator->Entity->CurrentAnimation->etc and keeping track when you pass a keyframe. Alternatively you can add events to the animation and subscribe via the Animator->EventTriggered event.
  2. Hi, As you already figured out you can pause and resume by setting the Speed property. For the end of the animation - Animator.cs exposes the AnimationFinished event which you can subscribe to. As for jumping to specific keys - what's the use case for that? Could you achieve the same effect by splitting the animation into several smaller ones and then just switch animations instead of jumping to different keys?
  3. Hey, How about implementing a custom Animator that has both the Texture and Normal data as the sprite parameter? Something like: class CustomAnimator : Animator<TextureNormal, SoundEffect> With TextureNormal being some kind of datastructure that has both your texture and normal data. That way you can draw both with one loop.
  4. I have no experience with Xamarin Forms - but I don't see why not. The core library just basically crunches numbers and gives you the numbers about the required transform. You "only" need to map it to something visual - which I assume you can do with Xamarin Forms.
  5. What kind of errors are you getting? Especially for the 1.6.1 version
  6. Hi, At the moment there's no API to do such a thing. I plan to add stuff like this into the new version (one fine day in the future). However, if you end up implementing something like that, please consider submitting a PR - I gladly accept contributions p.s. MonoGame is awesome
  7. Same here. I work on this library between a full-time job and the game I do in my spare time which unfortunately doesn't really leave a lot of time. I plan to rewrite the core of the library and add more advanced features in the future but that will take a while.
  8. I don't think you can do this directly without some kind of trickery. Maybe have a completely separate entity for the arm and just play it on top of the rest of the character? You're right, blend trees are not supported yet + lots of other advanced blending techniques. But feel free to implement them and open a PR and I'll gladly merge it.
  9. This line literally is registering a function to the event. Try animator.EventTriggered += e => GiveDamage(); Btw, this is basic C# - I recommend reading about Delegates, Events, Actions and Funcs.
  10. Once again - the docs and examples are your friend.
  11. For the vast majority of animation management - you usually want some kind of state machine. I highly recommend reading about it here.
  12. Hi You can't see them because they are not listed. You're supposed to control them programmatically. You can use the code from the example to see how certain things are done but that alone won't get you far. For everything else - read the docs and try the examples.
  13. Not sure without debugging but I suspect your move is not actually zero. Checking floats for a specific value should be done with an epsilon not with an actual equality check. Something like: const float EPSILON = 0.001f; // basically a small threshold if(Math.Abs(move) < EPSILON) { // trigger Idle animation } If that's not it - just debug it.
  14. Glad you fixed it - and don't worry, it happens to all of us Adding this here for future reference. If you can't see your animation, check the following: 1) all the images are imported as Sprites 2) your animation game object has a normal scale 3) your animation game object is not hidden by something in the front Also, the Controller is just a very basic example of how to control the animation, it does not get generated when importing .scml files. It's also worth noting that SpriterDotNet isn't integrated with the Unity's animation system and therefore needs to be controlled programmatically - hence the Controller in the example.
  15. No since Unity's animation system doesn't support all the features Spriter has + it also doesn't provide enough low level access to do a proper integration (at least last time I checked). However, Dengar's implementation has a better integration with Unity so check that out. Also, there's another lib by Dengar that adds a portion of the same functionality to SdN) so you might want to check that as well.
×
×
  • Create New...