Collisions not working?

Blitz3D Forums/Blitz3D Programming/Collisions not working?

Cubed Inc.(Posted 2013) [#1]
Hey guys. I'm working on a 3d platforming game and I came across a puzzling problem regarding enemy to player collisions (the player's foot is a separate entity in this regard). I created this simple code for testing purposes...

If EntityCollided(te01\entity,TYPE_FEET)
EntityColor te01\entity,255,255,255
Else
EntityColor te01\entity,0,0,0
EndIf

The enemy should turn white when collided with the player's foot, and remain black when not, but it's just not working. Anyone have any ideas why? It's been baffling me for hours now:/


jfk EO-11110(Posted 2013) [#2]
does the coloring work without the ifs?
ygot updateworld called?
tried to store return value in a variabe , then check the variable?