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

#1 2010-11-06 17:20:19

dalekjasc
Scratcher
Registered: 2010-09-15
Posts: 8

how do i keep a scroller inside a box/area?

how do i keep a scroller inside a box/area?

Offline

 

#2 2010-11-06 18:26:42

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: how do i keep a scroller inside a box/area?

Just limit the y scroll/x scroll variables. For example, if you don't want the player to move outside of a box bigger than 1000 units, limit scroll x to be between 0 and 1000.


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://i.imgur.com/OZn2RD3.png&link2=http://i.imgur.com/duzaGTB.png&link3=http://i.imgur.com/CrDGvvZ.png&link4=http://i.imgur.com/POEpQyZ.png&link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

Board footer