Animation explanation

Non-platform specific questions.

Animation explanation

Postby Jedi_portug » Sat Jun 28, 2008 2:45 pm

Ok I don't understand animation very well I know we can use GIFS but I want to make an animated character with a laser sword so I need:

animation+gradual transparency

how do I do this???
PLZ help!

thanks in advance Jedi_portug
Jedi_portug
 
Posts: 16
Joined: Mon Apr 23, 2007 4:37 pm
Score: 0 Give a positive score

Re: Animation explanation

Postby asmodeus » Sat Jun 28, 2008 10:09 pm

There are three ways to do animations in GE.
1st: Use animated gifs.
2nd: Use several graphics. sprite000.bmp, sprite001.bmp... . See screenshot 1
3rd: Use tiled graphics (see screenshot 2 and 3)
Attachments
screenshot1.png
Screenshot 1
caveman_right.png
Screenshot 2
screenshot2.png
Screenshot 3
User avatar
asmodeus
 
Posts: 483
Joined: Thu Oct 11, 2007 5:04 pm
Location: Germany
Score: 43 Give a positive score

Re: Animation explanation

Postby Jedi_portug » Sun Jun 29, 2008 12:28 pm

so you mean I have to do a png image with the frames stretched out verticaly and it will work?
Jedi_portug
 
Posts: 16
Joined: Mon Apr 23, 2007 4:37 pm
Score: 0 Give a positive score

Re: Animation explanation

Postby asmodeus » Sun Jun 29, 2008 2:09 pm

Jedi_portug wrote:so you mean I have to do a png image with the frames stretched out verticaly and it will work?

yes, that should work.
User avatar
asmodeus
 
Posts: 483
Joined: Thu Oct 11, 2007 5:04 pm
Location: Germany
Score: 43 Give a positive score

Re: Animation explanation

Postby Fuzzy » Mon Jun 30, 2008 5:51 am

Or horizontally.
Mortal Enemy of IF....THEN(and Inspector Gadget)

Still ThreeFingerPete to tekdino
User avatar
Fuzzy
 
Posts: 1068
Joined: Thu Mar 03, 2005 9:32 am
Location: Plymostic Programmer
Score: 95 Give a positive score

Re: Animation explanation

Postby Jedi_portug » Mon Jun 30, 2008 2:36 pm

Another question is about transparency wich is in that picture example above wich is determined "charright" or "charleft" in the gameeditor's files the black automaticaly goes transparent but what if I need to do a character wich has black parts in it like a black shirt or something or black hair. how do I do that?
thanks for the help with animations!
Jedi_portug
 
Posts: 16
Joined: Mon Apr 23, 2007 4:37 pm
Score: 0 Give a positive score

Re: Animation explanation

Postby DST » Mon Jun 30, 2008 3:25 pm

Whichever color is the upper left pixel, that is what will become transparent. Its an exact match, so some people use a nice bright green for a background, instead of black. (a shade of green that is unlikely to be used ever).

I stay away from background masks like that because they mess with your color perception when making the files, and i've found its much easier to use .png's for all your graphics, with transparent backgrounds. Simpler to work with in a high end graphic editor, and you don't have to worry about the transparent color in GE, like if you want your character to have black hair.

Sometimes, when i use block backgrounds with no transparency, i forget about Ge making the auto transp, so i sometimes put a green dot in the upper corner, to make sure there are no 'holes' in the image.
It's easier to be clever than it is to be kind.
http://www.lostsynapse.com
http://www.dstgames.com
User avatar
DST
 
Posts: 1117
Joined: Sun Apr 15, 2007 5:36 pm
Location: 20 minutes into the future
Score: 151 Give a positive score

Re: Animation explanation

Postby asmodeus » Mon Jun 30, 2008 4:54 pm

Jedi_portug wrote:Another question is about transparency wich is in that picture example above wich is determined "charright" or "charleft" in the gameeditor's files the black automaticaly goes transparent but what if I need to do a character wich has black parts in it like a black shirt or something or black hair. how do I do that?
thanks for the help with animations!

Use png, put in an alpha channel but no transperency pixels, then you won't have any transp pixels in GE.
Attachments
with_alpha.png
Graphic with alpha channel.
There won't be any transp pixels in GE.
with_alpha.png (304 Bytes) Viewed 2026 times
no_alpha.png
Graphic without alpha channel.
The white will get transp in GE.
no_alpha.png (273 Bytes) Viewed 2024 times
User avatar
asmodeus
 
Posts: 483
Joined: Thu Oct 11, 2007 5:04 pm
Location: Germany
Score: 43 Give a positive score

Re: Animation explanation

Postby Jedi_portug » Tue Jul 01, 2008 1:22 pm

wow thanks guys I find this forum really helpful!
I've got some more questions but I'm not sure if GE can handle it like:
minimap;
"ocult-object-when-behind-thing">its like your character passes behind a building or something and gets obscured but you don't want that, so what you want is the object to disapear when it should be obscuring the character if possible the object shouldn't just disapear it should fade away.

are these possible if yes how?
Jedi_portug
 
Posts: 16
Joined: Mon Apr 23, 2007 4:37 pm
Score: 0 Give a positive score

Re: Animation explanation

Postby Jedi_portug » Thu Jul 03, 2008 9:21 am

another thing is that my ge sometimes crushes. I try to minimize it or something it slows down then crushes.
Jedi_portug
 
Posts: 16
Joined: Mon Apr 23, 2007 4:37 pm
Score: 0 Give a positive score

Re: Animation explanation

Postby DST » Thu Jul 03, 2008 9:37 am

Jedi_portug wrote:minimap

viewtopic.php?f=1&t=5741&st=0&sk=t&sd=a&start=60#p40300
Jedi_portug wrote:
ocult-object-when-behind-thing">its like your character passes behind a building or something and gets obscured but you don't want that, so what you want is the object to disapear when it should be obscuring the character if possible the object shouldn't just disapear it should fade away.

are these possible if yes how?

Well the simplest way would be to have the building>collision>player1> transp=.8; or something close to that, you'd want the building to still be there, just partially invisible. And a collisionfinish>player1> transp=0;
It's easier to be clever than it is to be kind.
http://www.lostsynapse.com
http://www.dstgames.com
User avatar
DST
 
Posts: 1117
Joined: Sun Apr 15, 2007 5:36 pm
Location: 20 minutes into the future
Score: 151 Give a positive score

Re: Animation explanation

Postby Jedi_portug » Fri Jul 04, 2008 3:50 pm

ok I've seen the link and found your "minimapdemo" very awesome very well working!
but I didn't understood how you made it can you post a tut (step by step or video perhaps :D ) if it isn't asking much.
and is there a way to make a save game option so that te player doesn't have to play it all at once?
Jedi_portug
 
Posts: 16
Joined: Mon Apr 23, 2007 4:37 pm
Score: 0 Give a positive score

Re: Animation explanation

Postby Jedi_portug » Sun Jul 06, 2008 12:17 am

Plus I've come up with a few more questions about ge:
camera tremble (like a giant walking and the camera trembles)
hit holes (shot a wall there is a hit hole/mark on it)


are the above possible???
Jedi_portug
 
Posts: 16
Joined: Mon Apr 23, 2007 4:37 pm
Score: 0 Give a positive score

Re: Animation explanation

Postby Jedi_portug » Tue Jul 08, 2008 1:35 pm

can't somebody help?
Jedi_portug
 
Posts: 16
Joined: Mon Apr 23, 2007 4:37 pm
Score: 0 Give a positive score

Re: Animation explanation

Postby DST » Tue Jul 08, 2008 5:50 pm

Hit holes: just make a hole actor.
Bullet>collision>wall:
Code: Select all
CreateActor("hole", "hole", "Collide Actor", "no path", 0, 0, false);
DestroyActor("Event Actor");


Keep in mind, that bullets are in front of things usually, but the holes need to become part of the background. In this case, i've set the hole to become a child of the wall (collide actor). Now it will inherit the zdepth of the wall, basically making it part of the background :P

With save game, you have to convert any necessary values to global integers.

This can be hard depending on how much needs to be saved (this is one reason very few games ever had anytime save, instead they made you go to the inn or something like that). If you were at the inn, there was no battle going on, no xy coordinates to save, made it all much easier.

To save game, you'd use the loadvars and savevars functions.
A global integer, on the variables tab, can be given a save group.
This line here will look for the file config.sav, and load any variables in the group 'prefs'.
Code: Select all
loadVars("config.sav", "prefs");


and this line will save them.
Code: Select all
saveVars("config.sav", "prefs");
It's easier to be clever than it is to be kind.
http://www.lostsynapse.com
http://www.dstgames.com
User avatar
DST
 
Posts: 1117
Joined: Sun Apr 15, 2007 5:36 pm
Location: 20 minutes into the future
Score: 151 Give a positive score

Next

Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron