if you had each “collision” with the stair trigger a small set of motions for your player, like up, up forward, forward for a X stair, then your player would automagically “walk” up the stair,
so
in logic
In “step detector” — a small cube sensor above floor and just in front of player
collision “stair”-------------and-------------Message Player Subject Stair
and in player
message “Stair”------------------------------and---------------Assign property X=1
if X=0(state check)-------------------------/
property+interval(if X=>1 while X<9)-and---------------X=X+1 (Add property)
if property = 10---------------------------and---------------X=0
if X = 2 --------------------------and----------------------------(motion frame 1)
if X = 3 --------------------------and----------------------------(motion frame 2)
if X = 4 --------------------------and----------------------------(motion frame 3)
and so on,
if X = 0 -------------------------and ------------------------------do stuff
this is a for loop in logic triggered by a collision
somewhere in other controls for movement etc you need the following so when you are going up stairs you can’t stop during a step, so in other words, you will move up one step at a time, and stay at each step unless you move forward into the stair close enough to trigger the walk,or you could make a cancel system, that would stop your motion, and then ping pong backward through the motions negatively, but would take 2 times the nodes
attached is a generic for loop triggered by a message from another object