Solarus-Games English Forum

Solarus => Development => Topic started by: Yeury on September 23, 2017, 07:55:13 AM

Title: Issue with doors
Post by: Yeury on September 23, 2017, 07:55:13 AM
Hello I'm having an issue with doors when I try to add a sprite to them. It seems the sprite is off the center of the door for some reason. When the game is running the collision box for the door is perfect but the sprite is invisible. I have added all the relevant screenshots below
Title: Re: Issue with doors
Post by: Christopho on September 23, 2017, 11:53:16 AM
For doors, the origin point of the sprite should be 0,0.
Title: Re: Issue with doors
Post by: Yeury on September 23, 2017, 04:22:38 PM
Hey thank you that worked the off set issue but when I run the game the sprite of the door is not visible although my character can still collide with and unlock this "invisible door". It is accompanied by this error. "Error: Illegal direction 3 for sprite "entities/door' in animation 'closed'

Edit: so it's working for me now and for anyone else who might have a similar issue I added a new animation called closed and added a direction and now my door works how I want it to.
Title: Re: Issue with doors
Post by: YoshiMario2000 on September 23, 2017, 05:01:36 PM
You need to have multiple directions for the sprite or simply just set the door's direction to the right.