Problem with shadow effect

Started by Jade, Tue 05/07/2005 12:38:36

Previous topic - Next topic

Jade

I was tring to make a shadow to my character...putting in the global script this commands:

followcharacterex(shadow, jade, follow_exactly, 1);
set trasparency(shadow, 50);

note: shadow has his own view with each walking loop to look more realistic

My problem is that in the game the character "shadow" follow exactly "jade" but its static(i mean that it doesnt loop the assigned normal view).

If i sobstitute a number of pixels to "follow_exactly" then "shadow" animate but it doesnt follow the main character like a true shadow... :-\

Is there another way to make a decent effect?

Pod

Tried setting the number of pixels to 0? or 1?

Jade

Quote from: Pod on Tue 05/07/2005 16:44:14
Tried setting the number of pixels to 0? or 1?
yes...but the character "shadow" walk around before reaching the right distance... "follow_exactly" seem working right but i've that problem i mentioned above...

DoorKnobHandle

Quote from: Jade on Tue 05/07/2005 12:38:36
Is there another way to make a decent effect?

Create a new character and then make it "invisible" via checkbox. Now place him next to the main character or whoever you want to have the shadow with an offset of some pixels. Make sure to update his position in the repeatedly_execute ( ) function constantly using the char[SHADOW].x and char[SHADOW].y variables.

It's kinda complicated to add all the animation and stuff but that's in the nature of shadows, I think.

Jade

Quote from: [ ... ] on Tue 05/07/2005 23:41:52
Quote from: Jade on Tue 05/07/2005 12:38:36
Is there another way to make a decent effect?

Create a new character and then make it "invisible" via checkbox. Now place him next to the main character or whoever you want to have the shadow with an offset of some pixels. Make sure to update his position in the repeatedly_execute ( ) function constantly using the char[SHADOW].x and char[SHADOW].y variables.

It's kinda complicated to add all the animation and stuff but that's in the nature of shadows, I think.
Wait...how do you place it next to the main character? Do you use "follow character" or another script?  ???

Miez

Why not just make the shadow part of your character sprite and use an alpha channel to make it partly transparent? That should be possible, right?

Darth Mandarb

Quote from: miez on Wed 06/07/2005 12:33:09Why not just make the shadow part of your character sprite and use an alpha channel to make it partly transparent? That should be possible, right?

This is what I do and it works perfectly.

Jade


guybrush

Could you explain that alpha channel a bit more? I guess it's made with another program, but i don't understand how. I use Paint Shop Pro and ArtGem.
SPY FUNCTION-- My first game
C O M I N G   S O O N !

SMF spam blocked by CleanTalk