Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: on Wed 05/11/2003 03:32:35

Title: Player walks through objects.
Post by: on Wed 05/11/2003 03:32:35
I can't get the player to not walk through an object.

How can i make the player stop upon collision with the object?

Thanks,

CarDash
Title: Re:Player walks through objects.
Post by: Ishmael on Wed 05/11/2003 05:10:03
http://www.agsforums.com/yabb/index.php?board=6;action=display;threadid=9462

There is the search function!
Title: Re:Player walks through objects.
Post by: on Wed 05/11/2003 05:23:14
Indeed there is a search function! Very perceptive.. :)

Very nice too that one can make it an unwalkable area.. just a damned PITY that one can't WALK on the spot where the object WAS after the player PICKS IT UP .. hence.. that's a NO NO.. And no, i am not going to make two different rooms because of one object on the floor :)

Anyways, joking aside.. is there an actual solution for this problem/'feature' (like that script that's mentioned in the other thread, that script that the search doesn't find)?

CarDash
Title: Re:Player walks through objects.
Post by: Timosity on Wed 05/11/2003 05:34:24
You can use the same method and just use these when needed

RemoveWalkableArea(....);
RestoreWalkableArea(....);

you can look them up to see the parameters

just fill the area you remove (where the object is) with another walkable area so you can turn just that bit on and off
Title: Re:Player walks through objects.
Post by: on Wed 05/11/2003 05:38:09
Ahh, now that's helpful.

Thanks!

CarDash