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

#1 2010-06-17 19:41:55

samurai768
Scratcher
Registered: 2009-07-21
Posts: 1000+

Stop at end of scrolling plane?

I want a script where when you get to the end of a scrolling bar (In this case, of ingredients for a pizza) it stops and waits for you to go the other way. The arrows that move the scrolling ingredients bar are mouse controlled, and there will be buttons on the bar.

If anyone can make me a script it would help SOOOOO much. Thanks, and I'll give credit  big_smile

SCRATCH ON!  big_smile

Offline

 

#2 2010-06-17 19:48:27

coka
Scratcher
Registered: 2007-11-03
Posts: 1000+

Re: Stop at end of scrolling plane?

So what you are saying is
that you click the buttons to scroll through
or
that it scrolls, and then you can go back with the arrows?

If I have more info, I can maybe script something that is better for your situation...

Last edited by coka (2010-06-17 19:48:40)


http://i42.tinypic.com/2rot8c2.png

Offline

 

#3 2010-06-17 20:05:55

samurai768
Scratcher
Registered: 2009-07-21
Posts: 1000+

Re: Stop at end of scrolling plane?

coka wrote:

So what you are saying is
that you click the buttons to scroll through
or
that it scrolls, and then you can go back with the arrows?

If I have more info, I can maybe script something that is better for your situation...

You click the buttons to scroll  big_smile

Offline

 

#4 2010-06-17 20:12:08

coka
Scratcher
Registered: 2007-11-03
Posts: 1000+

Re: Stop at end of scrolling plane?

Is the scroll bar the length of the screen? If it is, it will be easier.
also
Do the changing ingredients effect the length of the scrolling? Are they random, or costumes?

Last edited by coka (2010-06-17 20:12:36)


http://i42.tinypic.com/2rot8c2.png

Offline

 

#5 2010-06-17 20:26:32

samurai768
Scratcher
Registered: 2009-07-21
Posts: 1000+

Re: Stop at end of scrolling plane?

coka wrote:

Is the scroll bar the length of the screen? If it is, it will be easier.
also
Do the changing ingredients effect the length of the scrolling? Are they random, or costumes?

The scroll bar is the length of screen, and the igredients fit in the scroll bar  big_smile  There are goign to be separate sprites for every ingredient (there are like 16) until I can find a substitution  tongue

Would you like for me to upload the scroll bar?

Offline

 

#6 2010-06-17 20:42:46

coka
Scratcher
Registered: 2007-11-03
Posts: 1000+

Re: Stop at end of scrolling plane?

samurai768 wrote:

Would you like for me to upload the scroll bar?

Sure, that might be a good idea!  smile


http://i42.tinypic.com/2rot8c2.png

Offline

 

#7 2010-06-19 13:56:22

samurai768
Scratcher
Registered: 2009-07-21
Posts: 1000+

Re: Stop at end of scrolling plane?

coka wrote:

samurai768 wrote:

Would you like for me to upload the scroll bar?

Sure, that might be a good idea!  smile

Here it is: http://scratch.mit.edu/projects/samurai768/1136792

Offline

 

#8 2010-06-23 12:22:24

samurai768
Scratcher
Registered: 2009-07-21
Posts: 1000+

Re: Stop at end of scrolling plane?

bump?

Offline

 

#9 2010-06-23 13:07:55

coka
Scratcher
Registered: 2007-11-03
Posts: 1000+

Re: Stop at end of scrolling plane?

Sorry, I was gone recently so I didn't have time to look at it. I'll look at it right now though!  wink


http://i42.tinypic.com/2rot8c2.png

Offline

 

#10 2010-06-23 14:13:11

coka
Scratcher
Registered: 2007-11-03
Posts: 1000+

Re: Stop at end of scrolling plane?

Hmm.. I'm not a pro at scrolling techniques at all, and I cant seem to find something that works well. Maybe check out some scrolling tutorials here, or maybe someone else can help.  hmm


http://i42.tinypic.com/2rot8c2.png

Offline

 

#11 2010-06-23 14:26:59

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: Stop at end of scrolling plane?

This should not give you such a hard time

just do this:

if scrollx> rightlimit{
set scrollx to right limit
}

What that does is if it passes the limit, the scrolling variable is set to the limit.

Last edited by archmage (2010-06-23 14:27:09)


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

Board footer