Maris Posted July 30, 2015 Share Posted July 30, 2015 (edited) I can't figure out why it does not work:owner.AnimState:OverrideSymbol("swap_object", "swap_godstaff", "swap_godstaff")I can see the weapon in inventory and on the ground, but it is invisible in hand. swap_godstaff.zip Edited July 30, 2015 by Maris Link to comment Share on other sites More sharing options...
Kzisor Posted July 30, 2015 Share Posted July 30, 2015 @Maris, symbol is the folder name, not the animation bank name. Link to comment Share on other sites More sharing options...
Maris Posted July 30, 2015 Author Share Posted July 30, 2015 (edited) Ah... I thought it was internal folder names that are hidden from the game.@Kzisor, thanks a lot! Now it works with this code:owner.AnimState:OverrideSymbol("swap_object", "swap_godstaff", "image") But now there is another issue. the character holds the weapon for the top left corner of the image: I set the pivot point but it does not help: Edited July 30, 2015 by Maris Link to comment Share on other sites More sharing options...
Kzisor Posted July 30, 2015 Share Posted July 30, 2015 @Maris, you must set the default pivot position. Setting the pivot position does not affect it unless you're using the animation file. Make sure that your Spriter project has no errors otherwise it won't recompile properly. Link to comment Share on other sites More sharing options...
Maris Posted July 30, 2015 Author Share Posted July 30, 2015 Sorry. Now all fine! Just resaved, recopied and recompiled project (probably missed something before). Link to comment Share on other sites More sharing options...
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