I solved it like this:
using an Always Sensor to trigger a python script:
controller = bge.logic.getCurrentController()
own = controller.owner
#doCheckMarker is a Boolean game property
# get the timeline markers
tm = bpy.context.scene.timeline_markers
markers = tm.keys()
# get the actuator:
# f-curve actuator storing the current frame into a property named "currentFrame"
actlist = controller.actuators
anim = actlist["Anim"]
for mn in markers:
if own['currentFrame'] == tm[mn].frame:
# we are on a timeline_marker
# turn off checking until we are off the marker...
own['doCheckMarker'] = False
own['lastStop'] = own['currentFrame']
#for example stop the animation
if own['currentFrame'] != own['lastStop']:
own['doCheckMarker'] = True
if anybody has a better method of implementing something like this, i would appreciate to know it…
it would be nicer to have a native callback function for this.