Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: InCreator on Wed 08/10/2003 18:03:27

Title: Simple question about objects
Post by: InCreator on Wed 08/10/2003 18:03:27
How do I make an object that can be not walked through - like an openable door?
Title: Re:Simple question about objects
Post by: on Wed 08/10/2003 18:20:55
just take out the walkable areas that you don't want  8)
Title: Re:Simple question about objects
Post by: InCreator on Wed 08/10/2003 19:07:44
No no no. I have a long walkable area and at some point door blocks it. How to make so that if door is closed player cannot walk through it? I didn't find any DisableWalkAbleArea command. otherwise, I'd make a little walkable area just under the door.
Title: Re:Simple question about objects
Post by: Scorpiorus on Wed 08/10/2003 19:35:21
RemoveWalkableArea() ;)

~Cheers
Title: Re:Simple question about objects
Post by: SSH on Thu 09/10/2003 12:31:26
Actually, it would be handy if there was a bit more consistency across function names:

Here's how totrun off various things:

RemoveWalkAbleArea
ObjectOff
DisableHotspot
character[X}.room = -1
LoseInventory
GUIOff
StopMusic
RemoveOverlay
DisableRegion
SetWalkBehindBase(X, 0)
SetDialogOption(X, Y, 0);

Can't they all be Disable or all Remove or all Off?
Maybe CJ could set up some default #defines to make a more consistent API?
Title: Re:Simple question about objects
Post by: InCreator on Thu 09/10/2003 16:49:05
RemoveWalkAbleArea? But how in the hell am I able to walk there when door is opened again?
Title: Re:Simple question about objects
Post by: Scorpiorus on Thu 09/10/2003 17:25:47
Remove means disable in that case.

RestoreWalkableArea() it's in see also under RemoveWalkableArea btw

~Cheers
Title: Re:Simple question about objects
Post by: Kweepa on Thu 09/10/2003 20:20:55
> Can't they all be Disable or all Remove or all Off?

If it was that easy, you wouldn't feel any sense of achievement at learning the API!

> Maybe CJ could set up some default #defines to make a more consistent API?

Oh, and make deleting everything in the editor consistent too :)