|
|
| Sprite position in grabber or in allegro |
|
dothedru22
Member #7,325
June 2006
|
Is there a way to line up the sprites correctly in grabber. I'm making a side scroller where the sprites line up at the feet and it would be so much easier to just line them up in grabber. but for some reason anything i change in grabber doesnt work. like i changed the x and y pos and the grid and everything but nothing seems to change. any help would be really appreciated. thanks. |
|
Tobias Dammers
Member #2,604
August 2002
|
What exactly do you mean, "line up"? For a typical sidescroller, the feet will touch the bottom edge of the sprite, and you'd draw them at (x; feet_y - sprite->h). If your sprites are drawn correctly, then you shouldn't have to adjust anything in grabber. --- |
|
dothedru22
Member #7,325
June 2006
|
well like in the sprite animation example that comes with allegro. the animation lines up perfectly in grabber. im wandering if it was already set up that way in a paint program(photoshop, psp, etc) or aligned that way in grabber. because in the actual code there not changing any of the y or x coordinates whend drawing. |
|
Tobias Dammers
Member #2,604
August 2002
|
The animation lines up because its individual frames are arranged so that they do. To be more precise, they are (probably) equally sized, and the character is always at the same position within the sprite. --- |
|
dothedru22
Member #7,325
June 2006
|
Ok thanks man. So basically i have to line up the sprites in paint shop pro. thanks. |
|
|