Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: CroManDan on Fri 08/01/2010 03:03:43

Title: Dumbish questions: Walking into anoter room and object question
Post by: CroManDan on Fri 08/01/2010 03:03:43
Hi there guys and game makers! Im pretty new at AGS game making, and i have a qestion.
Okay, here's the situation. My Character needs to find an Object in the Room 2, and that main character is in Room 1. Is there any way that he can go to edge of the screen and that shall lead him to Room 2?

I've look'd the Tutorial, FAQ and Wiki, and i haven't find an answer. Sorry if i missed someting.was


..............................

EDIT:

How can I lock the door that Character can't get into the Room, but when he picks key, he can?
Thank you.
Title: Re: Dumbish question: Walking into anoter room
Post by: Mazoliin on Fri 08/01/2010 07:48:16
Character.ChangeRoom() (http://www.adventuregamestudio.co.uk/manual/Character.ChangeRoom.htm)
Use the command either with the room edges or a region.
Title: Re: Dumbish question: Walking into anoter room
Post by: CroManDan on Fri 08/01/2010 13:20:02
Thank you alot man!
Title: Re: Dumbish questions: Walking into anoter room and object question
Post by: ThreeOhFour on Fri 08/01/2010 13:30:48
Quote from: CroManDan on Fri 08/01/2010 03:03:43
EDIT:

How can I lock the door that Character can't get into the Room, but when he picks key, he can?
Thank you.

If you want the player to use the key on the door hotspot, create a new event for using that inventory item on the hotspot (via the events pane for that hotspot)

If you just want to check if the player has picked up a key or not when they use the door or move to the edge of the room, use either a variable that you change when the key is picked up, or Character.HasInventory (http://www.americangirlscouts.org/agswiki/Character_functions_and_properties#Character.HasInventory)
Title: Re: Dumbish questions: Walking into anoter room and object question
Post by: Khris on Fri 08/01/2010 15:52:44
I really recommend browsing the manual and the included tutorial, also Densming's video tutorials (and the forum search).
These sorts of questions should never ever be posted here; a) it's against the rules, b) how likely is it that this problem didn't present itself to one of the thousands of AGSsers before you in the last 7 years...?
Title: Re: Dumbish questions: Walking into anoter room and object question
Post by: aventurero on Fri 08/01/2010 23:34:00
CroManDan, the other guys explained very well what you should do. But it seems to be you don't know the most basic things about scripting, so I'll send you some links that will help you:

Desming tutorials - How to use AGS Part 1 (Introduction)
http://www.youtube.com/watch?v=1Ml_DR76Cl4 (http://www.youtube.com/watch?v=1Ml_DR76Cl4)
(There are 41 parts)

AGS tutorials at the main page:
http://www.adventuregamestudio.co.uk/acres.shtml (http://www.adventuregamestudio.co.uk/acres.shtml)

AGS wiki:
http://www.americangirlscouts.org/agswiki/Main_Page (http://www.americangirlscouts.org/agswiki/Main_Page)

I guess that'll help you by now. And most important, read the help from AGS itself. And the AGS tutorial too. It's really helpful.