Gohan Posted November 13, 2011 Author Share Posted November 13, 2011 Due to the size of my character sheet, my sprite is rendered a whole tile over from where it actually is. Where in the source can I recenter it? Link to comment Share on other sites More sharing options...
Patrick0809 Posted November 13, 2011 Share Posted November 13, 2011 do you use eo ? Link to comment Share on other sites More sharing options...
Gohan Posted November 13, 2011 Author Share Posted November 13, 2011 Of course, I'm not aware of any other working engine on this site, not anymore at least :P (R.I.P. ES) Link to comment Share on other sites More sharing options...
Patrick0809 Posted November 13, 2011 Share Posted November 13, 2011 hmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmi haven´t worked with es before…ok äh are the sprites at the x 0 y0 on the sheet ? Link to comment Share on other sites More sharing options...
Gohan Posted November 13, 2011 Author Share Posted November 13, 2011 It's just a normal sprite sheet. 32x32 sprite, 4 directions, 12 frames.I changed this part of the code so that the sprite would not be a jumbled mess``` With rec .top = spritetop * (DDSD_Character(Sprite).lHeight / 4) .Bottom = .top + (DDSD_Character(Sprite).lHeight / 4) .Left = Anim * (DDSD_Character(Sprite).lWidth / 12) .Right = .Left + (DDSD_Character(Sprite).lWidth / 12) End With```And now the sprite gets drawn a whole tile away from where it actually is![](http://www.freemmorpgmaker.com/files/imagehost/pics/6fd71554a735b915491b5c5f22ca3ada.jpg) Link to comment Share on other sites More sharing options...
Patrick0809 Posted November 13, 2011 Share Posted November 13, 2011 can you make a screen of the sheet ?is that a normal sheet like in eo or cs:de ?then i can help Link to comment Share on other sites More sharing options...
Gohan Posted November 13, 2011 Author Share Posted November 13, 2011 Here it is, EO.What the crap is CS:DE Link to comment Share on other sites More sharing options...
Robin Posted November 13, 2011 Share Posted November 13, 2011 If you've modified the engine to handle more frames then you'll obviously need to change the size offsets used in my dynamic sprite code. Link to comment Share on other sites More sharing options...
Gohan Posted November 13, 2011 Author Share Posted November 13, 2011 Thanks :) Link to comment Share on other sites More sharing options...
Patrick0809 Posted November 13, 2011 Share Posted November 13, 2011 CS:DE is the EO with directx8 and big other features ;-D Link to comment Share on other sites More sharing options...
Gohan Posted November 13, 2011 Author Share Posted November 13, 2011 @Patrick0809:> CS:DE is the EO with directx8 and big other features ;-DIn other words its too complicated for my current skill level xDThink I'll to EO for now. 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