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

#1 2012-11-13 08:38:26

Bidbrain007
New Scratcher
Registered: 2012-11-03
Posts: 8

Help!!!

I am making a scrolling game,but when the sprites start to move too fast gaps forms between them.Any hints? anybody?

when gf clicked
go to front
go back [4] layers
forever if < (x position) = [-462] >
 set x to [440]
end
when gf clicked
forever
 point in direction [-90]
 move <[0.1] * (m/h)> steps
end

Offline

 

#2 2012-11-13 08:42:14

Bidbrain007
New Scratcher
Registered: 2012-11-03
Posts: 8

Re: Help!!!

Oh yes i forgot there are two of these sprites one behind the other  big_smile

Offline

 

#3 2012-11-13 09:07:56

jvvg
Scratcher
Registered: 2008-03-26
Posts: 1000+

Re: Help!!!

Since this is a question about scripts, I reported it to be moved to "Help with Scripts".


http://tiny.cc/zwgbewhttp://tiny.cc/e1gbewhttp://tiny.cc/zygbewhttp://tiny.cc/izgbew
Goodbye, Scratch 1.4  sad                                                        Hello Scratch 2.0!  smile

Offline

 

#4 2012-11-13 09:28:47

BurritoSM
Scratcher
Registered: 2012-11-11
Posts: 33

Re: Help!!!

Just add a limit to the speed, that would be my solution.

Offline

 

#5 2012-11-13 10:18:35

Bidbrain007
New Scratcher
Registered: 2012-11-03
Posts: 8

Re: Help!!!

I would like it to go past that speed limit

Offline

 

#6 2012-11-13 10:49:38

Llamalover
Scratcher
Registered: 2007-05-18
Posts: 100+

Re: Help!!!

Maybe have only one 'main' sprite running the calculations, and define all the other sprites positions in relation to that main sprite.
If the main sprite were called "Sprite 1", then only Sprite 1 would have those scripts you posted, as well as a forever block that sets a variable called 'Sprite 1 X Postion' to, well - you can guess! The other sprites would have codes like: forever - set x to ('Sprite 1 X position' + distance from that sprite to this one).


Be nice, I'm an old lady  wink

Offline

 

Board footer