Question with special collisions

Blitz3D Forums/Blitz3D Beginners Area/Question with special collisions

W(Posted 2006) [#1]
I made an elevator and I want to be able to actually use it in my blitz3d game. But it doesn't lift the player up. Okay if the player is above the elevator\lift, there is no collisions. But if the player is next to the lift he runs into it, what do i need to do to fix my problem??

;some of my code
Global elevator = LoadMesh("C:\Documents and Settings\flacka\Desktop\Game\elev8r.3ds")
PositionEntity elevator,0,-1,0
ScaleEntity elevator,8,8,8
RotateEntity elevator,90,0,0
EntityType elevator,scenery_type
EntityPickMode elevator,2,1


;Included in my main loop
Collisions player_type,scenery_type,2,2


Any help is appreciated, thanks


Ross C(Posted 2006) [#2]
Well, since your collisions have to really involve a moving entity and a stationary entity, the way round this, is to see if the player is on the lift, then parent him to the lift. If the player is off the lift, un parent him :o)


W(Posted 2006) [#3]
How would I go about unparenting him?


jhocking(Posted 2006) [#4]
EntityParent entity,0


Sledge(Posted 2006) [#5]
Or keep the lift stationary and just move the rest of the scene instead.