Animation transparency troubles

Non-platform specific questions.

Animation transparency troubles

Postby unigamer » Mon Jan 30, 2006 8:59 pm

I have been trying to make a transparent GIF but cannot get it to work. I have both Animation shop and Photoshop elements. I can get the animation but I cannot find how to make it transparent. If I use the transparency slider the whole image turns transparent. Does anyone know what I am doing wrong?
unigamer
 
Posts: 12
Joined: Sat Jan 28, 2006 6:59 pm
Score: 0 Give a positive score

Postby Novice » Mon Jan 30, 2006 9:04 pm

GE uses the top left pixel for transparency, so if its white all white color in that animation will be transparent and so on.
You can also use images with alpa chanel like png and the like.
When you use 32 bit images GE dosent use the top left pixel for transparency.
Hope this helps you to solve your problem.
Why do i always get stuck?
User avatar
Novice
 
Posts: 399
Joined: Mon Aug 29, 2005 10:54 am
Location: Relative
Score: 5 Give a positive score

Postby unigamer » Mon Jan 30, 2006 10:20 pm

Ah, I think I just about have it, thanks for the tip.

Edit: Yes, Indeed I have.
unigamer
 
Posts: 12
Joined: Sat Jan 28, 2006 6:59 pm
Score: 0 Give a positive score

Postby unigamer » Tue Jan 31, 2006 5:29 pm

I have another problem...

I would like on a collosion with another actor the frame of the animation jumps back 8.

I have tried the code

animpos =-8;

but I don't tihnk that's right because it's not working :roll:
unigamer
 
Posts: 12
Joined: Sat Jan 28, 2006 6:59 pm
Score: 0 Give a positive score

Postby Mardi-Gras » Tue Jan 31, 2006 5:33 pm

This is a 'best guess', because I haven't tried it, but I think it might be:

animpos = animpos-8;

Hope that works. Sorry if not.
User avatar
Mardi-Gras
 
Posts: 57
Joined: Sun Jan 22, 2006 10:10 pm
Location: Glenrothes, Scotland
Score: 0 Give a positive score

Postby unigamer » Tue Jan 31, 2006 5:38 pm

:shock: You're fast! Thanks, it worked!
unigamer
 
Posts: 12
Joined: Sat Jan 28, 2006 6:59 pm
Score: 0 Give a positive score

Postby Mardi-Gras » Tue Jan 31, 2006 5:40 pm

You're most welcome. :D
User avatar
Mardi-Gras
 
Posts: 57
Joined: Sun Jan 22, 2006 10:10 pm
Location: Glenrothes, Scotland
Score: 0 Give a positive score

Postby DilloDude » Tue Jan 31, 2006 10:17 pm

Tip: for anything such as variable = variable-x etc. you can shorten it to variable-=x. It will have the same result. It is very good for an actor variable and things with long names, eg. Harebbochopulis.aVariableWithAReallyLongName = Harebbochopulis.aVariableWithAReallyLongName + Grepchupudes.aVariableWithAnEvenLongerName.
could be shortened to
Harebbochopulis.aVariableWithAReallyLongName += Grepchupdes.aVariableWithAnEvenLongerName.

PS: why you'd have things like that I don't know, but it makes a point.
Image
User avatar
DilloDude
 
Posts: 866
Joined: Tue Jan 24, 2006 9:51 am
Location: Nyerellion
Score: 58 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest