Changing the sprite width

ModKeen mods Tiles and Sprites in all episodes of Commander Keen.
Post Reply
Ezjay
Posts: 158
Joined: Fri Feb 27, 2004 1:15 pm
Location: Amsterdam

Changing the sprite width

Post by Ezjay »

When ive changed the width of a sprite, making it bigger, all the sprites go weird when i start the game. Changing the height is no problem though - sprites can be as tall as i want them to be.

What am i doing wrong? Offcourse i changed the seize of the transparency mask and bounding rectangle to have the same width, so that's not it.

Is this a known problem? Or am i just doing something very wrong here?
Snaily
Posts: 26
Joined: Sun Oct 19, 2003 11:06 am
Location: West of swEden

As a matter of fact...

Post by Snaily »

It is a known behaviour - You have to make the widths of the sprites a multiple of 24 - that is, each of the three small images has to be multiple of 8 wide. I'm not sure if there are similar issues with other types of images, but the readme has info on that, too.
User avatar
adurdin
Site Founder
Posts: 549
Joined: Fri Aug 29, 2003 11:27 pm
Location: Edinburgh, Scotland
Contact:

Post by adurdin »

Yes, each bitmap must be a multiple of 8 pixels wide also.
If you're using ModKeen 2, it will check this and issue an error if one of your .bmp files is the wrong width.
User avatar
levellord
Crazy pAtChEr
Posts: 1401
Joined: Thu Nov 20, 2003 11:35 pm
Location: NewZealand
Contact:

Post by levellord »

Also, if a sprite is to big, it won't work.
Ezjay
Posts: 158
Joined: Fri Feb 27, 2004 1:15 pm
Location: Amsterdam

Post by Ezjay »

thanks, i should have read the modkeen 2 readme.

There was nothing about it in the modkeen 1 readme so i assumed i had to ask
KeenRush
Patch Maker
Posts: 1988
Joined: Sun Aug 31, 2003 2:52 pm
Location: Sand Yego
Contact:

Post by KeenRush »

Or search this board, I remember I've answered that question at least couple of times. :)
Anyways, nice you got the things rollin'.
Ezjay
Posts: 158
Joined: Fri Feb 27, 2004 1:15 pm
Location: Amsterdam

Post by Ezjay »

did that, just assumed it would be in this modkeen forum
Post Reply