Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Dreptschar on Sun 26/08/2018 12:18:32

Title: [Solved]Walkable areas wont´t work
Post by: Dreptschar on Sun 26/08/2018 12:18:32
Hey,
first of all, sorry for my bad English:D.
So currently I try to build an adventure game but I run into a bug or something.
The walkable areas in my second room don't work. I tried a lot, but nothing helped.
I colored the whole room but the player just walks in the top half of the screen. If I click on the bottom half nothing happens.
If anyone has an idea why or what the problem, I would be glad about an answer.


Title: Re: Walkable areas wont´t work
Post by: VampireWombat on Sun 26/08/2018 12:41:12
Can you try defaulting the main character to start in the second room and somewhere in the bottom half? Then test it.
Something else you could try is using a 2nd walkable area for the bottom half.
A screenshot showing your second room inside of AGS showing walkable areas and the default properties would be helpful.
There's just enough information to be helpful.
Title: Re: Walkable areas wont´t work
Post by: Dreptschar on Sun 26/08/2018 16:51:50
Hey,
thanks for the quick reply!

(http://www.bilder-upload.eu/show.php?file=04f5bc-1535298474.png)

(http://www.bilder-upload.eu/show.php?file=958d04-1535298588.jpg)

If I click in the red area it works.
I will try your suggestions.

For some reason, it doesn't show the pictures.
http://www.bilder-upload.eu/show.php?file=04f5bc-1535298474.png
http://www.bilder-upload.eu/show.php?file=958d04-1535298588.jpg
I've tried to use a 2nd area but that didn't work.
I also created a new char and placed it in the room but he also just react if I click in the top half.

Thanks in advance!
Title: Re: Walkable areas wont´t work
Post by: VampireWombat on Sun 26/08/2018 17:04:31
For a moment I thought the issue might have been that you're using the 3rd walkable area. But I tried it with 3 different templates and the walkable area fully filled in and had no issues. Are there any hotspots or objects that could be causing problems?
Title: Re: Walkable areas wont´t work
Post by: Dreptschar on Sun 26/08/2018 17:07:13
There was one Hotspot. I removed it but it didn't change anything.
Title: Re: Walkable areas wont´t work
Post by: Dreptschar on Sun 26/08/2018 17:08:40
It feels like the game tracks my mouse position wrong or something. Even when i just set a small area on the beach to walkable i just can click on the bottom half.
Title: Re: Walkable areas wont´t work
Post by: VampireWombat on Sun 26/08/2018 17:10:43
Okay. What about the room's edges? Maybe that has something to do with it.

Only other things I can think of is if you have a module or plugin that's causing problems.
There has to be an unknown element that would explain the problem.
Title: Re: Walkable areas wont´t work
Post by: Dreptschar on Sun 26/08/2018 17:16:41
That would make sense but nope. I tried some positions but nothing changed. I also got an error Message: System.AccessViolationException and my background color changed ^^
I think something broke :D
http://www.bilder-upload.eu/show.php?file=c59bc9-1535300107.png
Title: Re: Walkable areas wont´t work
Post by: VampireWombat on Sun 26/08/2018 17:21:56
Have you tried moving the top edge to the very top of the screen and bottom edge to the very bottom?
That's the only other thing I can think to try. Otherwise someone else will have to give a try.
Title: Re: Walkable areas wont´t work
Post by: Dreptschar on Sun 26/08/2018 17:25:21
Yep but didn't work.
I don't use any plugin or something just the normal ags.
Well, Thanks a lot for your help I hope someone else has an idea.
Title: Re: Walkable areas wont´t work
Post by: Khris on Sun 26/08/2018 18:05:33
Can you put your game files on google drive or something, so we can take a look?
Title: Re: Walkable areas wont´t work
Post by: Dreptschar on Sun 26/08/2018 18:14:48
Thanks for the great help!
https://drive.google.com/file/d/1woMrfaY6ZouMBQ9C2VzRmnJphkWwiMD_/view?usp=sharing

Title: Re: Walkable areas wont´t work
Post by: Khris on Sun 26/08/2018 21:10:08
I took a look and noticed that it's not just walking but also right-clicking while in the lower half that didn't work.
Which means it has to be a GUI that catches the click.
gCursorText is moved under the mouse when the y coordinate is > 120, so all you need to do is turn its Clickable property to "False".
Title: Re: Walkable areas wont´t work
Post by: Dreptschar on Sun 26/08/2018 22:00:01
WoW! Thank You so much! It finally worked!
I'm really impressed with the ags community!
Have a great Day!