Its possible, enabled hotspot in other room? THANKS.

Started by , Mon 21/11/2005 12:26:27

Previous topic - Next topic

Spanish

Greetings:

Excuse my low English level.
I wanted to know if it is posibe, to activate or to disable "hotspot" in different room.
Usually to activate hotspot in a room it is:
hotspot [1] .enabled = true;

As serious to activate "hotspot 1" in another room?

Thank you.

Sorry, i speak spanish, my english is very bad  :'(

Ashen

It's not directly possible, I'm afraid.

If you only want to do it with one or two hotspots, you could use variables, and enable the hotspot in one of the Player enters screen interactions.
E.g.:
Code: ags
//When you want to enable the hotspot:
SetGlobalInt (100, 1);

//Then, when you enter the room the hotspot is in:
if (GetGlobalInt(100) == 1) hotspot[1].Enabled = true;
else hotspot[1].Enabled = false;


However, you might be better using strazer's OtherRoom Module, which gives you control over all hotspots - and objects - in other rooms.
I know what you're thinking ... Don't think that.

Candle

================================================================================
OtherRoom script module for Adventure Game Studio v2.7
by strazer
================================================================================
Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Version 0.84

********************************************************************************
This is a BETA version, so there may still be some things that need fixing.
If you decide to try it out, I'd appreciate some feedback at:
http://www.adventuregamestudio.co.uk/yabb/index.php?topic=20650
********************************************************************************

Contents
========

1. - Introduction
2. - Features
3. - Changelog
4. - Setup
5. - How it works
6. - Usage
6.1 - Module functions
7. - Customization

================================================================================
1. Introduction
================================================================================

This script module is inspired by the OtherRoom plugin by Steve McCrea.

The basic idea is that you can turn various things in other rooms on and off.
Although this can be done in other ways, this module is more intuitive and
easier to use, especially for beginners.

The problem with the OtherRoom plugin is that it can currently only be used with
theÃ,  Windows version of AGS. I switched to Linux a few months ago, so I decided
to do it via script.
With the introduction of script modules in AGS v2.7, it seemed the perfect
opportunity. So here it is.

You are free to use this for any game, free or commercial. A credit would be
nice but is not necessary.

Have fun! :)
Ã,  strazer


================================================================================
2. Features
================================================================================

* Turn on, off and toggle hotspots and regions in other rooms
* Turn on and off walkable areas in other rooms
* Turn on, off, fade, toggle and position objects in other rooms
* Get current status of things in other rooms

Elliott Hird

(this is not acting the mod!)
Candle, you could try to help him,
1. He's spanish, try to help him, I doubt he understands you.
2: That's just a copy & paste of the manual...

Spanish

Thank you  boys.

I have used strazer's OtherRoom Module, and it works of marvel.

Thank you very much!!!  :)


SMF spam blocked by CleanTalk