Play Home Contribute GitHub Join Us Discourse Staff Members GitHub Contribution Guides Team

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:
elif steps%SKIP==0:
elif sideSteps>SLIDE:
elif sideSteps<1:
steps += 1
sideSteps += VarS

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