Eusong Posted September 23, 2017 Share Posted September 23, 2017 Title basically says it all, but here's the modmain and exported anims. stuff.zip Link to comment Share on other sites More sharing options...
Lumina Posted September 23, 2017 Share Posted September 23, 2017 Yes, you need two things as far as i remember : - a spriter project with very specific names and structure - a code to make it work I'll try to search examples later, but i never made it work, i should retry one day... Link to comment Share on other sites More sharing options...
Lumina Posted September 23, 2017 Share Posted September 23, 2017 You should find explanations here. As i said, i wasn't able to make it work but it's probably because i didn't got the structure or name right rather than anything else. Link to comment Share on other sites More sharing options...
spideswine Posted September 23, 2017 Share Posted September 23, 2017 I remember that waiter 101 does things of the sort, so you can try figuring it out from there. Link to comment Share on other sites More sharing options...
ptr Posted September 23, 2017 Share Posted September 23, 2017 4 hours ago, Lumina said: You should find explanations here. As i said, i wasn't able to make it work but it's probably because i didn't got the structure or name right rather than anything else. Eusong have used exactly the DarkXero's code, so it is not the code's fault. The actual problem here is Spriter won't create a folder entry for images not included in the animation to specify the correct pivot point, so we have to do it manually. Quote <folder id="0" name="radfish_dried"> <file id="0" name="radfish_dried/radfish_dried-0.png" width="128" height="128" pivot_x="0" pivot_y="1"/> </folder> <folder id="1" name="radfish_hanging"> <file id="0" name="radfish_hanging/radfish_hanging-0.png" width="256" height="256" pivot_x="0.74" pivot_y="0.5"/> </folder> <folder id="2" name="radfish_dried_hanging"> <file id="0" name="radfish_dried_hanging/radfish_dried_hanging-0.png" width="256" height="256" pivot_x="0.74" pivot_y="0.5"/> </folder> The bolded part is what you have to add. BTW, it is really inconvenient to test without the correct modmain and corresponding prefab, so please make the uploaded code able to run next time if you want to keep the rest part classified. Link to comment Share on other sites More sharing options...
Eusong Posted September 23, 2017 Author Share Posted September 23, 2017 It works! Thank you so much ptr. I really appreciate the help, guys. Link to comment Share on other sites More sharing options...
Lumina Posted September 23, 2017 Share Posted September 23, 2017 (edited) 2 hours ago, ptr said: Eusong have used exactly the DarkXero's code, so it is not the code's fault. The actual problem here is Spriter won't create a folder entry for images not included in the animation to specify the correct pivot point, so we have to do it manually. Oh, thanks for this explanation. I should try again one day then, maybe i'll make it works, finally. Sorry if i reposted a code he/she already had, since i didn't had time to look at the modmain. Edited September 23, 2017 by Lumina 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