Lost Viking functions

Hi there,

I have some troubles with the functions in the level names “Lost Viking”.

I think that my functions “Switch” and “Skip” are Ok.
But “Slide” doesn’t work when I’m under 1 (even when I change sidesteps inferior to 2 or 3 and I add a condition & steps>5 to not go up at the beginning).

Here are my functions:

if steps%SWITCH==0:
    VarS=-VarS
elif steps%SKIP==0:
    sideSteps+=VarS
elif sideSteps>SLIDE:
    sideSteps=1
elif sideSteps<1:
    sideSteps=SLIDE
steps += 1
sideSteps += VarS

Sorry if it is not very clear.
Thanks for your help :wink: