|
Post by therealmethuselah on Dec 3, 2005 14:50:37 GMT -5
Download: alphaTutorial.gm6 (19.0KB) This requires a program that can do alpha, layers, drop-shadows etc (I used Photoshop) I started with a .png image that had a semi-transparent drop shadow. I loaded it into photoshop and added a background layer which I made black. I then saved this as sprite1.gif Now I do a color overlay on the layer that has the helmet on it with White. I then save this as sprite0.gif I then load these into GameMaker as sprite0 and sprite1I then create an object called object0 and a room called room0I set object0's sprite to sprite1. In the creation event of object0, I place this code. sprite_set_alpha_from_sprite( sprite1, sprite0); I add this object to the room. And voila! Semi-Transparency (like. png)!
|
|