Basically if you have certain items it will change the sprite by adding different elements to the player. At first I thought sprite_merge would do this, but it seems that just tacks on the new sprites to the end of the first one.
What I want is something that will take my sprite and merge it OVER the old sprite, so like: I have 15 images for my player. I have 15 images in the exact location I need for a hat to sit on the players head in each sprite. What I want to do is MERGE the hat sprite on TOP of the base player sprite to make a new layered sprite for in game use.
this is what I had tried (in my Draw event):
var spr_merged;
if (suit)
{
spr_merged = sprite_merge(playerSpriteBase, playerSpriteSuit);
}
if (!suit)
{
spr_merged = playerSpriteBase;
}
but that doesn't work... in fact it bugs out so much that it turns my player into a completely different sprite all together.
If anyone knows a way to do this please let me know
edit: posted this in advanced because I don't think there is going to be a simple answer for this.
Edited by wakeskater_X, 06 July 2012 - 08:48 AM.











