collision

Blitz3D Forums/Blitz3D Beginners Area/collision

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Make a variable that goes up one each time the camera collides with the character:

Global hits = 0

If EntityDistance(camera,character) < hitdistance
hits = hits + 1
If hits = 3
;The code to knock over the character goes here, animate or whatever you do
hits = 0 ;So the count restarts
End If
End If