I have been messing around with the source to try and add additional frames for sprites. Bare with me as I am new to C# and the source so a bit of a noob.
Â
I have managed to add 8 frames for sprite movement, but I am unsure to how to centralise the sprite. At the moment it is off to the left and I cant see where I would make it so its in the center of the entity.
Â
With JCs edit with _idle _attack and such I have made the base sprite purly walking animations and used the _idle for the sprite not moving at all and changed "TimeBeforeIdling = 50;" so as soon as the player stops moving it plays idle. I might be going around this the wrong way so any advice will be helpful.
Question
Ainz Ooal Gown
Hi All,
Â
I have been messing around with the source to try and add additional frames for sprites. Bare with me as I am new to C# and the source so a bit of a noob.
Â
I have managed to add 8 frames for sprite movement, but I am unsure to how to centralise the sprite. At the moment it is off to the left and I cant see where I would make it so its in the center of the entity.
Â
With JCs edit with _idle _attack and such I have made the base sprite purly walking animations and used the _idle for the sprite not moving at all and changed "TimeBeforeIdling = 50;" so as soon as the player stops moving it plays idle. I might be going around this the wrong way so any advice will be helpful.
Â
Made a gif of issue:
Â
Â
I thought it would have been this:
Â
Â
and changing line
LatestMap.GetX() + X * Options.TileWidth + OffsetX + Options.TileWidth / 2,
to
LatestMap.GetX() + X * Options.TileWidth + OffsetX + Options.TileWidth / 4,
Â
But above didnt work.
Â
Thanks
Link to comment
Share on other sites
16 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now