# Tutorials - Drawings/Animations and more

edit: I fixed it kinda but the animation is weird

Hello I haven’t been on in a while. How is everyone?

1 Like

Welcome back to the forums @Ryder_Beaumont ! Everybody is doing fine, thanks for asking

Im not able to work on that until 7 hours from now. By that time, someone else should be able to help.

Hey @gamer_boi, I know the problem.

In line 145 (default script), you have a typo.

You wrote “`this.spiks`.” It should be “this.spikes

This is just a simple correction… one letter change.
But now, it should work when you click play :)
NinjaRunnerTutorial3-22-2021_13-50-31.wick (287.3 KB)

2 Likes

can you help with the weird animation

Sure :)

So in line 144, the tree clip resets every time when it moves a distance of 160

The tree clip is broken into three identical parts

Looking at the x position, the difference is 500

You’ll just have to change the distance that the tree clip moves before resetting to 500 rather than 160.

3 Likes

1 Like
1 Like

I need help again edit: NinjaRunnerTutorial3-22-2021_17-53-23.wick fixed the die but I still need help on the shurikens tri to shoot

With what exactly, could you describe more?

and the spikes only go once

Also, use the console to debug…

1 Like

now the spikes wont work NinjaRunnerTutorial3-22-2021_18-36-02.wick (337.8 KB)

Use the console to debug… it will give you more benefits in the long run than asking for help in every single obstacle. (I used it to find your previous problem…)

OK SO I NEED TO KNOW IF I USED THIS INTEGER RIGHT?

… if you want to select from 5 or 10, but with a probability of 20%, I would do…

``````let rNum = random.integer(1,10);
if(rNum == 5 || rNum == 10) {
play();
}``````
2 Likes

Ok Thx! I will try it.

I will practice and learn everything I can about integers.

2 Likes