Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Stridon on Tue 15/09/2009 14:04:30

Title: Graphic problems [SOLVED]
Post by: Stridon on Tue 15/09/2009 14:04:30
Guys, I have another problem. Time and type feel. In my room there is a player who can walk freely in the room. In the room besides him there is another character. If the player comes close to the character and the character walks in front of the head is severed as if in fact going backwards. Maybe I was not well expressed. To make me understand I could put a picture. I can not
Title: Re: Graphic problems
Post by: Khris on Tue 15/09/2009 14:15:39
What gets drawn in front is determined by baselines. Each character has one and by default it's at their feet. So that shouldn't have happened unless you've manually set the baseline in a script.

To show a screenshot, upload the picture to the net, e.g. here: http://imageshack.us
Then copy the "direct link" to your post and put the image tag around it.

(http://i208.photobucket.com/albums/bb259/khrismuc/gnaaa.png)
Title: Re: Graphic problems
Post by: Stridon on Tue 15/09/2009 17:47:24
I did not have the image on a site but only on my computer. Why do not you understand anything of what I said? Someone who understood the problem?

Title: Re: Graphic problems
Post by: Akatosh on Tue 15/09/2009 17:48:43
Just upload the picture to, say, imageshack.us... as Khris said. Did you even read his post?
Title: Re: Graphic problems
Post by: Khris on Tue 15/09/2009 18:36:39
Geez. To diagnose the exact nature of the problem, a screenshot would be a big help.
So either press F12 while the game is running (the screenshot will end up in "My Documents/My Saved Games/*gamename*/") or press PrintScreen on your keyboard and paste it to a new empty document in a Graphics Program.
Convert the file to png if it is a bmp, then upload it at the site I mentioned and link us to it.

Title: Re: Graphic problems
Post by: Stridon on Tue 15/09/2009 19:07:41
The picture is this. Maybe you understand more about the problem

http://img178.imageshack.us/content.php?page=done&l=img178/1676/42420616.png&via=mupload
Title: Re: Graphic problems
Post by: Khris on Tue 15/09/2009 19:12:36
(http://img178.imageshack.us/img178/1676/42420616.png)

Assuming you didn't manually change the baseline, the only explanation seems to be that the sprite of the guy with the red cap isn't properly cropped.
A character is handled using the bottom center of their current sprite, so if the actual position of the red guy is below the other's, he'll get displayed in front.
Could you tell us the starting coordinates of the right guy?
Title: Re: Graphic problems
Post by: Stridon on Tue 15/09/2009 20:08:51
The coordinates are these: 350, 600
Are quite strange because if I use the cursor to edit the room do not match.
Even to edit the areas we walked I had to move everything to run the edges as well as the coordinates of the player.
Maybe I put bad edges or do something else?

Here's a picture of how I put the areas walkers

http://img136.imageshack.us/content.php?page=done&l=img136/9230/14541906.png&via=mupload
Title: Re: Graphic problems
Post by: Khris on Tue 15/09/2009 20:13:48
You need to crop the sprites of the characters. This will solve all your problems.
Title: Re: Graphic problems
Post by: Stridon on Tue 15/09/2009 20:34:23
How do I cut out sprites?
Title: Re: Graphic problems
Post by: Khris on Tue 15/09/2009 21:09:54
It's all in the manual:
http://www.adventuregamestudio.co.uk/manual/Importing%20your%20own%20sprite%20graphics.htm
Title: Re: Graphic problems
Post by: Stridon on Wed 16/09/2009 14:20:58
I solved. You are fantastic Khris!