Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: DazJ on Tue 20/08/2013 23:27:41

Title: Setting Object Visibility Doesn't Work [SOLVED]
Post by: DazJ on Tue 20/08/2013 23:27:41
I'm embarrassed to ask this but it's been bugging me for a long time.

I have objects in my room that only appear once an event is triggered. I set their visibility property to FALSE in their respective property window but the objects are still visible when the room loads, regardless of this setting.

The only way I've found to make them invisible is to actually code it in the Room_Load function and it works. It's very strange.

Any ideas why this is happening?

I'm using standard 3.2.1.
Title: Re: Setting Object Visibility Doesn't Work
Post by: Khris on Tue 20/08/2013 23:55:16
Works fine for me; are you using any modules? Did you check your on_events and repeatedly_executes? The object must get turned visible at some point.
(Look for usages of object[] in global contexts.)
Title: Re: Setting Object Visibility Doesn't Work
Post by: DazJ on Wed 21/08/2013 00:45:50
It's applying to ALL objects in any room, that's the problem. There's no repeatedly_executes set. The only Modules I have are the following:

- Lake
- Scumm VerbCoin
- Smooth Scrolling

I'm guessing it must be one of those but I'd have thought it would be quite a common problem if it was.