Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: shaungaryevans on Sat 28/03/2009 20:54:17

Title: Interact option will not work,
Post by: shaungaryevans on Sat 28/03/2009 20:54:17
Hi All,

I don't know why but my interact option will work on objects in one room but not in the other room. I did similar stuff to both rooms. Do anybody know why that happens please?
Title: Re: Interact option will not work,
Post by: Trent R on Sat 28/03/2009 21:02:31
In the second room, did you create the functions via the events tab (lightning bolt) or did you just copy and paste the script?


~Trent
Title: Re: Interact option will not work,
Post by: shaungaryevans on Sat 28/03/2009 21:03:53
I created them by the event tab! :-\
Title: Re: Interact option will not work,
Post by: shaungaryevans on Sat 28/03/2009 21:50:01
I have made a band new room doing the same way, no copy and paste but it still won't work, HELP PLEASE?
Title: Re: Interact option will not work,
Post by: Dualnames on Sat 28/03/2009 21:54:39
Quote from: shaungaryevans on Sat 28/03/2009 20:54:17
Hi All,

I don't know why but my interact option will work on objects in one room but not in the other room. I did similar stuff to both rooms. Do anybody know why that happens please?

We could all by go at wild guesses here, so situations here:
1)You have a mouse_click section on the global script that only works on the first room.

Example:
Global Script:

function on_mouse_click(..bla bla) {
if (player.Room == 2) {
//code
}
}


2)You create the function script on the room, but it's not linked properly in the event bar. Check the object's event bar and press the ... button to see where that leads you into the script.
Title: Re: Interact option will not work,
Post by: shaungaryevans on Sat 28/03/2009 22:02:52
Nope sorry. any more ideas?
Title: Re: Interact option will not work,
Post by: shaungaryevans on Sat 28/03/2009 22:35:56
I have narrowed down the problem, it is something to do with the character. he moves in one room but not in the other
Title: Re: Interact option will not work,
Post by: Trent R on Sat 28/03/2009 23:04:50
Walkable areas?

~Trent
Title: Re: Interact option will not work,
Post by: shaungaryevans on Sun 29/03/2009 19:11:25
Of course, i had done anything else but that, how could i miss that! lol. Thank you