Dumbish questions: Walking into anoter room and object question

Started by CroManDan, Fri 08/01/2010 03:03:43

Previous topic - Next topic

CroManDan

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.

Mazoliin

Character.ChangeRoom()
Use the command either with the room edges or a region.


ThreeOhFour

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

Khris

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...?

aventurero

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
(There are 41 parts)

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

AGS wiki:
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.


Code: ags
function iToxicWaste_Talk()
{
Display ("You eat the toxic waste. Obviously, you die.");
QuitGame (0);}

SMF spam blocked by CleanTalk