Moving platforms?

Hey guys,

Supposedly simple question. How would you make your player stay on a moving platform, Mario-style, without having to walk with the platform?

in platform

always-----python

own.applyMovement((own[‘Value’],0,0),0)

delay (120?)----------------------toggle boolean

if boolean = True---------------Value= positive value

if boolean = False----------------Value=negative value

in player

ray -z platform-------------python

player.applyMovement((sens.hitObject[‘Value’],0,0),0)

Attachments

PlatformLogicAndPython (2).blend (473 KB)