I'm having trouble implementing the "slice contains" function and am wondering if I am not understanding it correctly.
I have the following script called within my autorun script:
Code: Select all
# if (FindCollidingSlice (ZoneContainer,f)) then(
if (slice contains (ZoneContainer,f)) then(
# Fall Down Pit
# Perform Death Dissolve
...
game over
)
In the game I have a pit. The pit is represented by a rectangular slice. When my hero's foot hitbox is completely contained within the pit slice I would like the player to fall into the pit resulting in a game over.