Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Samsam on Tue 08/11/2016 23:54:32

Title: Walkable Area problem
Post by: Samsam on Tue 08/11/2016 23:54:32
Hi! :-D, I have some problems with the "walkable areas". When I draw the walkable area, everything looks good! :-D , but when I test the game, the walkable area is moved up :undecided: . INFORMATION EXTRA: I'm using 1 walkable area. The game resolution is 800x600 like the background image. Could you tell me what is wrong?
Title: Re: Walkable Area problem
Post by: Gilbert on Wed 09/11/2016 02:21:10
Just a guess. Maybe there are some transparent rows of pixels under the feet of the character sprites, so that the baseline of the character appear lower than his feet, making him shifted upwards?
Title: Re: Walkable Area problem
Post by: Samsam on Wed 09/11/2016 02:59:01
you are right, but how I can fix this glitch ????
Title: Re: Walkable Area problem
Post by: AnasAbdin on Wed 09/11/2016 04:03:41
Set a negative z value for the characters that is equal to the number of transparent pixels below the character.


e.g.
Code (ags) Select
cEgo.z = -10;
Title: Re: Walkable Area problem
Post by: Samsam on Wed 09/11/2016 05:16:39
Thank you so much!!! :grin: :-D