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

#1 2009-08-31 17:53:35

ArchAngeI
Scratcher
Registered: 2008-12-06
Posts: 1

Sidescrolling past the screen boundaries

In the "edit" window I am able to drag sprites past the screen boundaries, e.g. -260 for the X coordinate. Though, when trying to scroll or simply with "set x to _" or "go to x=_ , y=_" there are apparent limiters, as x cannot go lower than -184 by this method (similar things happen for y and trying to increase x).

I am trying to create a precise scrolling method where the sprite will hide itself when  abs(x) > [1/2width]+240. Is this possible?

Offline

 

#2 2009-08-31 18:01:44

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

Re: Sidescrolling past the screen boundaries

If you make the sprite hide itself the user will be able to see it disappear. I usually just use 2 sprites that loop and forget making them hide.

Also interesting, the sprites can go further off screen when the project runs in the online player.


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

 

#3 2009-09-01 22:34:49

SmartIrishKid
Scratcher
Registered: 2008-07-19
Posts: 1000+

Re: Sidescrolling past the screen boundaries

In all my newer projects, I always just hide the edges with a border.


Discuss future Scratch RPGs, online games, and more!

Offline

 

Board footer