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

#1 2008-07-05 02:11:34

Bluestribute
Scratcher
Registered: 2008-01-24
Posts: 1000+

Scrolling stamping

How can I make something draggable on a scrolling background, so when you place it, it sets it's ScrollX and ScrollY to wherever you placed the sprite?


http://img247.imageshack.us/img247/1204/bluestributett4.jpg
That's my PSN ID. I know tons of COD4 glitches. Add me as your friend. Oh, and get a headset

Offline

 

#2 2008-07-05 05:42:24

s_federici
Scratcher
Registered: 2007-12-18
Posts: 500+

Re: Scrolling stamping

Uhmmm... could you give some more detail? I can't figure out what you really need.

Offline

 

#3 2008-07-05 09:18:14

Bluestribute
Scratcher
Registered: 2008-01-24
Posts: 1000+

Re: Scrolling stamping

s_federici wrote:

Uhmmm... could you give some more detail? I can't figure out what you really need.

Alright. So you drag a sprite somewhere on a scrolling background. As soon as you place it, it changes it's ScrollX and ScrollY to whatever you moved it too, so it doesn't just stay in the middle of the screen.

Joeyman, I will try that, thought it might not work


http://img247.imageshack.us/img247/1204/bluestributett4.jpg
That's my PSN ID. I know tons of COD4 glitches. Add me as your friend. Oh, and get a headset

Offline

 

#4 2008-07-05 09:39:31

joeyman
Scratcher
Registered: 2008-03-28
Posts: 1000+

Re: Scrolling stamping

Here's the project I made: Go here!


Joeyman: On Scratch since March 28, 2008.
Over 142 projects! (And recently a Brony, and PROUD of it!)

Offline

 

#5 2008-07-05 09:42:28

joeyman
Scratcher
Registered: 2008-03-28
Posts: 1000+

Re: Scrolling stamping

I used:
[blocks]<when green flag clicked>
<forever>
<if><< <touching[ mouse-pointer <and> <mouse down?> >>
<go to[ mouse-pointer
<end>
<if><<  <not> << <touching mouse pointer <and> mouse down? >>
<change x by( -3
<end> [/blocks]

The last script where it says to change the x by -3... that's only if your ScrollX is being changed by -3... if the ScrollX is being Changed by -10, than the red ball would be changed by -10... get it?

Last edited by joeyman (2008-07-05 09:50:22)


Joeyman: On Scratch since March 28, 2008.
Over 142 projects! (And recently a Brony, and PROUD of it!)

Offline

 

Board footer