This is my script
<when green flag clicked>
<forever>
<if><(<{ pointfoward }> <=> 1 )>
<switch to costume[ right]
<move( 2 )steps>
<else>
<switch to costume[ left]
<move( 2 )steps>
Know figure out a way to make the sprite go faster
Offline
Use a variable to control how many steps you take.
Something like this:
Offline
This does'nt work at all. It just makes my sprite go backwards
Offline
I am going to upload it so you can see the problem
Offline
I really don't know how that would make your sprite go backwards...
Did you set the costumes right? Maybe try switching which costume changes in both blocks (or even just use the "point in direction" block + the button).
Offline
I did and it still went backwards
Offline
OK, I just looked at the project you uploaded. You should probably delete the "left" costume, then change the rotation style to left/right by pressing the button, and change that first script to this:
That should do it.
Offline
doen"t WORK!!!!!!!!!!!!! JUST REMIX IT TO WORK IT OUT!!!!!!
Offline
Here you go. Hope that fixes everything.
Offline
I need the dog sprite to speed up every 30 seconds
Offline
That's pretty easy to do, in the dog sprite just change the "wait 5 secs" to "wait 30 secs".
Offline
make a variable velocity. then do move velocity steps. wait 30 seconds change velocity by_. does that help?
Offline
It doesn't have to be that complex.
Just make a variable called "speed." Then say
[blocks]
<forever>
<change{speed}by( 1
<wait( 1 )secsc>
<end>
[/blocks]
and then a different script:
[blocks]
<forever>
<move( <{speed}> )steps>
<end>
[/blocks]
Offline
Awesomeman98 wrote:
This is my script
<when green flag clicked>
<forever>
<if><(<{ pointfoward }> <=> 1 )>
<switch to costume[ right]
<move( 2 )steps>
<else>
<switch to costume[ left]
<move( 2 )steps>
Know figure out a way to make the sprite go faster
Just increase the steps to 10 steps.
Offline