Discuss Scratch

wag123
Scratcher
21 posts

how do i make the thing scroll

how do I make the thing scroll to the mouses pos..
hmmmmm
CatsUnited
Scratcher
1000+ posts

how do i make the thing scroll

wag123 wrote:

how do I make the thing scroll to the mouses pos(emoji spam removed)(scratchblocks spam removed)

I'm not quite sure, but create a sprite that is 480 * 130 and do this

whenclickedgotox:0y:0switchcostumetotiny create a new costume with one pixel (It's a griffpatch hax)setsizeto200%switchcostumetoscrolling thing the 480 * 130 costumeforeverchangexbymousex/10setxtomousex/10setxtoxmod720

Does that work??


Last edited by CatsUnited (Feb. 2, 2015 09:03:46)

wag123
Scratcher
21 posts

how do i make the thing scroll

I mean:
wag123
Scratcher
21 posts

how do i make the thing scroll

sorry the block thing didn't work…
wag123
Scratcher
21 posts

how do i make the thing scroll

I mean:


wag123
Scratcher
21 posts

how do i make the thing scroll

wag123
Scratcher
21 posts

how do i make the thing scroll

I mean up and down
wag123
Scratcher
21 posts

how do i make the thing scroll



when green flag clicked
wag123
Scratcher
21 posts

how do i make the thing scroll

when green flag clicked...
wag123
Scratcher
21 posts

how do i make the thing scroll

PhysicsWhizz
Scratcher
100+ posts

how do i make the thing scroll

deck26
Scratcher
1000+ posts

how do i make the thing scroll

wag123 wrote:

how do I make the thing scroll to the mouses pos..

I think you need to clarify what you need help with.

However you could start here http://wiki.scratch.mit.edu/wiki/Scrolling for scrolling turorials.

If you just want a sprite to go to the mouse position you can use one of the following

gotomouse-pointersetmyxtomousexsetmyytomouseyglide1secstox:myxy:myy
Leonard_02
Scratcher
13 posts

how do i make the thing scroll

u can do this
whenclickedstopallsoundssetscrollto0foreverchangescrollbyhow_fast
or
definescrollstopallsoundssetscrollto0foreverchangescrollbyhow_fast
Leonard_02
Scratcher
13 posts

how do i make the thing scroll

how fast is how fast you want it…
whenclickedmove100stepsdeleteC: sayBye!! lol
Leonard_02
Scratcher
13 posts

how do i make the thing scroll

whenclickedPASSnone
Leonard_02
Scratcher
13 posts

how do i make the thing scroll

change
none
to all, none, or close
Leonard_02
Scratcher
13 posts

how do i make the thing scroll

Well, first you need two sprites. the sprites are little bars that sit on the left and right edge. Then you create this script for both of them:
whenclickedforeverchangeghosteffectby100orhideThatmakesthemseem“invisible”,butyoucanstillinteractwiththem.Now,youneedavariableifyouwanttoscrolljustleftandright.Callthevariablewhateveryouwant,butIamcallingit“Scroll#”Scroll#ThatvariableisVERYimportant.Now,createthebackground.MAKESUREITISASPRITEELSEITWON'TWORK!!!Now,increasethesize,Irecommend150%,butanythingisfine.Gobacktothebars,addthisscript.Fortheleftbar:whenclickedforevergotofrontiftouchingmouse-cursor?thenrepeatuntilnottouchingmouse-cursor?changeScroll #byYOUPICKyoupickisjustanythingover0rightbar:whenclickedforevergotofrontiftouchingmouse-cursor?thenrepeatuntilnottouchingmouse-cursor?changeScroll #byYOUPICKyoupickisjustanythingbelow0
deck26
Scratcher
1000+ posts

how do i make the thing scroll

This topic is a year old so is probably of no interest to the original poster now.

Powered by DjangoBB