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

#1 2011-09-11 11:51:21

PigsInSpace
New Scratcher
Registered: 2011-09-11
Posts: 5

scrollX limit problems

some of you may know that you can slide an item for the appearance of walking down a long path. my question is if anyone can help me set a script causing it so stop scrollling. Can anyone help me?

Offline

 

#2 2011-09-11 12:13:21

laptop97
Scratcher
Registered: 2011-06-27
Posts: 1000+

Re: scrollX limit problems

Would it be where you can't walk any further after you get too far?

Offline

 

#3 2011-09-11 12:17:32

Espevoir
Scratcher
Registered: 2011-05-22
Posts: 16

Re: scrollX limit problems

PigsInSpace wrote:

some of you may know that you can slide an item for the appearance of walking down a long path. my question is if anyone can help me set a script causing it so stop scrollling. Can anyone help me?

Hm. Can you please link me to the project?

Offline

 

#4 2011-09-11 12:18:08

PigsInSpace
New Scratcher
Registered: 2011-09-11
Posts: 5

Re: scrollX limit problems

yes. I sort of want a "wall" so to speak where you don't go any further. If I go to far, I fall off my platform. I need it to stop going or at least connect to the other end.

Offline

 

#5 2011-09-11 12:21:09

PigsInSpace
New Scratcher
Registered: 2011-09-11
Posts: 5

Re: scrollX limit problems

sorry but I don't know how to edit posts. I will upload it and give you the link.

Offline

 

#6 2011-09-11 12:24:44

PigsInSpace
New Scratcher
Registered: 2011-09-11
Posts: 5

Re: scrollX limit problems

Offline

 

#7 2011-09-11 12:40:10

laptop97
Scratcher
Registered: 2011-06-27
Posts: 1000+

Re: scrollX limit problems

The 2 Movement Scripts should be:

Script 1:

Start
Forever If < <[Left Arrow] Pressed> and <Not <(ScrollX) = (0) >
Change [ScrollX] by (5)
{End of Forever If}

Script 2:

Start
Forever If < <[Right Arrow] Pressed> and <Not <(ScrollX) = (-1915) >
Change [ScrollX] by (-5)
{End of Forever If}

Last edited by laptop97 (2011-09-11 12:40:25)

Offline

 

#8 2011-09-11 13:10:24

PigsInSpace
New Scratcher
Registered: 2011-09-11
Posts: 5

Re: scrollX limit problems

k thanks i'll try that.

Offline

 

#9 2011-09-11 13:55:16

laptop97
Scratcher
Registered: 2011-06-27
Posts: 1000+

Re: scrollX limit problems

PigsInSpace wrote:

sorry but I don't know how to edit posts. I will upload it and give you the link.

You're a new scratcher so you can't edit posts  wink

Offline

 

Board footer