Sheker Posted August 4, 2011 Author Share Posted August 4, 2011 Hey guys. I'm looking at CS:DE (Considering to use it or not) and i'm wondering how to make a change sprite system like in eclipse origins. Does anybody have the code? Link to comment Share on other sites More sharing options...
mmearrccii Posted August 4, 2011 Share Posted August 4, 2011 -.- Link to comment Share on other sites More sharing options...
Sealbreaker Posted August 4, 2011 Share Posted August 4, 2011 rip it or recreate it, if you can't - let it be.Or re-arrange them…-seal Link to comment Share on other sites More sharing options...
DJMaxus Posted August 4, 2011 Share Posted August 4, 2011 You're not going to be able to simply rip it and it instantly works. Here's what you really need to do:Your sprite files are going to have to be 128x256, with blank space at the bottom. You can achieve this by canvasing your original image and having the sprites anchored to the top. You will have to make changes to "DrawPlayer" "DrawNpc" "ProcessMovement" and "DrawName."For DrawPlayer, and DrawNpc, you want to make calculations that will make the height of the drawn image 48, and the width of the drawn image 32(which is already set because of 32x32 sprites). For help with this, reference EO's BltPlayer, and how it calculates its numbers, but remember that when you are calculating them for CSDE, the actual height of your images are 256 instead of 192, as stated above. For ProcessMovement you can rip from EO, and for DrawName just adjust it by changing a number.Mess with it a bit and you'll achieve something like this: Link to comment Share on other sites More sharing options...
Sheker Posted August 5, 2011 Author Share Posted August 5, 2011 Ah, thank you. I didn't mean that however. I meant that on the start when you create your character in EO2, you could press "[Change Sprite]" and you could change your sprite from the selection in the server ini file. Crystalshire, Developer's Edition, does not have this. Thank you for the information to make my sprite size bigger. Link to comment Share on other sites More sharing options...
DJMaxus Posted August 5, 2011 Share Posted August 5, 2011 Oh wow, I could've sworn I was replying to a PM. Damn this phone sucks.I'll try to help you out later on. Link to comment Share on other sites More sharing options...
Robin Posted August 5, 2011 Share Posted August 5, 2011 That's nothing to do with the sprites, that's to do with the GUI.Try and ask questions properly in the future. 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