This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2010-09-30 18:15:29

Awesomeman98
New Scratcher
Registered: 2010-09-10
Posts: 35

I need to make my sprite faster over time

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

 

#2 2010-09-30 18:44:13

hmnwilson
Scratcher
Registered: 2007-07-04
Posts: 1000+

Re: I need to make my sprite faster over time

Use a variable to control how many steps you take.

Something like this:
http://www.freeimagehosting.net/uploads/a233dfed4c.gif


I'm taking a break from Scratch until 2.0 comes out. Any messages sent between then and now probably won't be read - sorry.
(Oct. 20, 2011)

Offline

 

#3 2010-10-05 18:37:24

Awesomeman98
New Scratcher
Registered: 2010-09-10
Posts: 35

Re: I need to make my sprite faster over time

This does'nt work at all. It just makes my sprite go backwards

Offline

 

#4 2010-10-05 18:41:14

roger-
Scratcher
Registered: 2010-02-13
Posts: 100+

Re: I need to make my sprite faster over time

it shouldn't...


Food is Fat. Fat is power.
        I am almighty.

Offline

 

#5 2010-10-05 18:42:15

roger-
Scratcher
Registered: 2010-02-13
Posts: 100+

Re: I need to make my sprite faster over time

how does it make it go backwards? maybe you copied it wrong...


Food is Fat. Fat is power.
        I am almighty.

Offline

 

#6 2010-10-05 18:47:25

Awesomeman98
New Scratcher
Registered: 2010-09-10
Posts: 35

Re: I need to make my sprite faster over time

I am going to upload it so you can see the problem

Offline

 

#7 2010-10-05 19:41:43

hmnwilson
Scratcher
Registered: 2007-07-04
Posts: 1000+

Re: I need to make my sprite faster over time

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 http://www.freeimagehosting.net/uploads/f428a0e220.png button).


I'm taking a break from Scratch until 2.0 comes out. Any messages sent between then and now probably won't be read - sorry.
(Oct. 20, 2011)

Offline

 

#8 2010-10-05 19:45:52

Awesomeman98
New Scratcher
Registered: 2010-09-10
Posts: 35

Re: I need to make my sprite faster over time

I did and it still went backwards

Offline

 

#9 2010-10-05 19:58:02

hmnwilson
Scratcher
Registered: 2007-07-04
Posts: 1000+

Re: I need to make my sprite faster over time

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 http://www.freeimagehosting.net/uploads/f428a0e220.png button, and change that first script to this:
http://www.freeimagehosting.net/uploads/0769a84421.gif
That should do it.


I'm taking a break from Scratch until 2.0 comes out. Any messages sent between then and now probably won't be read - sorry.
(Oct. 20, 2011)

Offline

 

#10 2010-10-05 20:02:56

Awesomeman98
New Scratcher
Registered: 2010-09-10
Posts: 35

Re: I need to make my sprite faster over time

doen"t WORK!!!!!!!!!!!!! JUST REMIX IT TO WORK IT OUT!!!!!!

Offline

 

#11 2010-10-05 20:13:36

hmnwilson
Scratcher
Registered: 2007-07-04
Posts: 1000+

Re: I need to make my sprite faster over time

Here you go. Hope that fixes everything.


I'm taking a break from Scratch until 2.0 comes out. Any messages sent between then and now probably won't be read - sorry.
(Oct. 20, 2011)

Offline

 

#12 2010-10-05 20:15:38

Awesomeman98
New Scratcher
Registered: 2010-09-10
Posts: 35

Re: I need to make my sprite faster over time

I need the dog sprite to speed up every 30 seconds

Offline

 

#13 2010-10-05 20:21:46

hmnwilson
Scratcher
Registered: 2007-07-04
Posts: 1000+

Re: I need to make my sprite faster over time

That's pretty easy to do, in the dog sprite just change the "wait 5 secs" to "wait 30 secs".


I'm taking a break from Scratch until 2.0 comes out. Any messages sent between then and now probably won't be read - sorry.
(Oct. 20, 2011)

Offline

 

#14 2010-10-06 08:53:49

platform710
Scratcher
Registered: 2010-04-23
Posts: 100+

Re: I need to make my sprite faster over time

make a variable velocity. then do move velocity steps. wait 30 seconds change velocity by_. does that help?


http://i54.tinypic.com/2wn8hnb.gif

Offline

 

#15 2010-10-09 09:40:46

GameHutSoftware
Scratcher
Registered: 2010-04-24
Posts: 1000+

Re: I need to make my sprite faster over time

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]


Lurking more than posting, but still here.

Offline

 

#16 2010-10-23 12:35:02

kinker
Scratcher
Registered: 2010-08-01
Posts: 100+

Re: I need to make my sprite faster over time

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.


Put in the weirdness: http://i54.tinypic.com/zl6fph.pnghttp://img821.imageshack.us/i/gobanim2.gif/kinker style! [url]http://internetometer.com/image/16724.png[/url]♬♫ 92% of teens have moved on to rap. If you are part of the 8% who still listen to real music, copy and paste this into your signature. ♫♪

Offline

 

Board footer