Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Recentering Sprite?


Gohan
 Share

Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...