Jump to content

Thiago Romam

Members
  • Posts

    3
  • Joined

  • Last visited

Thiago Romam's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. How do I define trigger collision for Unity? I set the "Is Trigger" flag for a BoxCollider2D after I imported an object. When I changed the Spriter Project, the entity is reimported and the "Is Trigger" flag loses it's value. Is there a different way to validate collisions when using SpriterDotNet?
  2. I didn't saw that. Usually I use GetComponent method for getting scripts in object, but I copied it this way from the SpriterDotNet.Examples. It works now Thanks for your help.
  3. Does SpriterDotNet works with multiples Spriter Projects imported to Unity? I create two different spriter projects and made one entity in each one. Both prefabs were created normally. I also added both to the scene and both animations works. The problem is with the Animator property of the SpriterDoNetBehavior. Scenario: 1. I imported the GreyGuy example to unity. Created a Script for the player to change its animation to hit_0 when an object (like a bullet) would collide with him. Works perfectly. 2. I created a Spriter project and made a Bat entity. I would use it as the bullet for the test 1. I imported the project to unity and added the Bat to the scene. When the bat collided with the GreyGuy, an Exception appear saying that the animation name I used to play in the GreyGuy's animator was not found. After some tests I realized that both GreyGuy and Bat prefabs were sharing the Bat's Animator. Does I need to do something for it to work? I uploaded the full unity project to onedrive: https://1drv.ms/u/s!AmhLdtS8gKjrlrpG9w4jIbN7H_D0bg Thiago Thanks
×
×
  • Create New...