Author Topic: Walkable Area problem  (Read 651 times)

Walkable Area problem
« on: 08 Nov 2016, 23:54 »
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?
« Last Edit: 09 Nov 2016, 20:43 by Samsam »

Gilbert

  • Local Moderator
  • * KILL* * KILL * * KILL *
    • Lifetime Achievement Award Winner
Re: Walkable Area problem
« Reply #1 on: 09 Nov 2016, 02:21 »
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?

Re: Walkable Area problem
« Reply #2 on: 09 Nov 2016, 02:59 »
you are right, but how I can fix this glitch ????

AnasAbdin

  • Peace, Love and AGS
Re: Walkable Area problem
« Reply #3 on: 09 Nov 2016, 04:03 »
Set a negative z value for the characters that is equal to the number of transparent pixels below the character.


e.g.
Code: Adventure Game Studio
  1. cEgo.z = -10;

Re: Walkable Area problem
« Reply #4 on: 09 Nov 2016, 05:16 »
Thank you so much!!! :grin: :-D