Interact option will not work,

Started by shaungaryevans, Sat 28/03/2009 20:54:17

Previous topic - Next topic

shaungaryevans

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?

Trent R

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
To give back to the AGS community, I can get you free, full versions of commercial software. Recently, Paint Shop Pro X, and eXPert PDF Pro 6. Please PM me for details.


Current Project: The Wanderer
On Hold: Hero of the Rune

shaungaryevans

I created them by the event tab! :-\

shaungaryevans

I have made a band new room doing the same way, no copy and paste but it still won't work, HELP PLEASE?

Dualnames

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:
Code: ags

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.
Worked on Strangeland, Primordia, Hob's Barrow, The Cat Lady, Mage's Initiation, Until I Have You, Downfall, Hunie Pop, and every game in the Wadjet Eye Games catalogue (porting)

shaungaryevans


shaungaryevans

I have narrowed down the problem, it is something to do with the character. he moves in one room but not in the other

Trent R

To give back to the AGS community, I can get you free, full versions of commercial software. Recently, Paint Shop Pro X, and eXPert PDF Pro 6. Please PM me for details.


Current Project: The Wanderer
On Hold: Hero of the Rune

shaungaryevans

Of course, i had done anything else but that, how could i miss that! lol. Thank you

SMF spam blocked by CleanTalk