Player walks through objects.

Started by CarDash, Wed 05/11/2003 03:32:35

Previous topic - Next topic

CarDash

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

Ishmael

I used to make games but then I took an IRC in the knee.

<Calin> Ishmael looks awesome all the time
\( Ö)/ ¬(Ö ) | Ja minähän en keskellä kirkasta päivää lähden minnekään juoksentelemaan ilman housuja.

CarDash

#2
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

Timosity

#3
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

CarDash

Ahh, now that's helpful.

Thanks!

CarDash

SMF spam blocked by CleanTalk