Is there any way to paste an object into another objects frame of animation??
For example I want to paste a blood stain on an axe throughout a game so it gets more bloody when times goes by.. But I want this to be dependent on where the player hits and stuff so pasting an object into the animation could help it get more "random", instead of having a preset number of frames with axes that has more and more blood on them..
Should technically be do-able via the overlay extension and the active object's "load frame" action.
It means you have to save the axe image to an actual file, add blood, and then re-load it. It sounds like it would be slow, but it's actually fine unless you have a huge axe object. You'd pretty much have to make the axe a separate object from the player holding it though - otherwise the blood will move relative to the axe with each animation frame.
I once did something similar in a top-down rally driving game, as a method of making the cars get gradually dirtier during the course of a race - I had an active picture object for the car, another semi-transparent one to act as a dirt layer (so you could still make out the details on the car underneath), and another to act as a mask for the areas I didn't want to get dirty (the image border around the actual car, and the windshield which would be kept clean by the wipers). I then just kept picking a random coordinate, and as long as that point wasn't black on the mask object, then I added a patch of dirt on the dirt layer. It was very effective, and didn't cause any slowdown at all.
"paste object into overlay" doesn't really let you set an x,y source and x,y destination easily - the object is pasted where it overlaps the overlay.
You should really put all the various "blood stains" into one overlay, and then use the "paste overlay into overlay" action instead.
btw: Something you might not have noticed, is that when it asks for the fixed value of the source overlay, you actually have to enter the "address of overlay" instead. Don't ask me why...
Alright, here's a demo:
Click mouse to add blood
"blood" is basically a spriteset containing different types of blood splotch.
"blood mask" is there so that the blood doesn't go over the edge of the axe.
"blood layer" is same as "dirt layer", so you just need to save it, and then load it into an active object as with the car example.
No, you can't
The overlay extension doesn't allow pasting with alpha channels.
The simple solution would be to use dithering on your blood stains, or I guess you could have two or three semi-transparent blood layers, and randomly choose which one to paste the blood stain into - where blood stains overlap on two or more layers, they would look darker/more opaque.