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

#1 2012-10-28 17:16:48

Saca312
Scratcher
Registered: 2011-03-24
Posts: 100+

Need Help with Infinite Scrolling.....

Well I'm trying to change Antimonyarsenide's scrolling platformer to make it compatible with Y scrolling, but I'm having difficulties. I also made it auto scroll. Here are the scripts I tried to use. Thanks for help in advance:

Sprite: Player

http://i.imgur.com/RCpP3.gif


Sprite: Level

http://i.imgur.com/pNIyy.gif


Sprite: Level2

http://i.imgur.com/GpNHD.gif

Last edited by Saca312 (2012-10-28 17:22:08)


http://i.imgur.com/AeIvr.png

Offline

 

#2 2012-10-29 15:11:25

Chainmanner
Scratcher
Registered: 2012-07-03
Posts: 13

Re: Need Help with Infinite Scrolling.....

Is there a:

forever if <key [up arrow v] pressed>
    change [ypositon v] by (5)
or something like that? That's the gyst of it, but it's more complex.

Offline

 

#3 2012-10-29 17:43:01

fg123
Scratcher
Registered: 2008-11-13
Posts: 1000+

Re: Need Help with Infinite Scrolling.....

I think the problem is first of all, the scrolly naming bug thing, you should fix. And the other, is that the original project probably had gravity, and that might need to be removed. Also, you need to add a script to change scrolly. It should be similar to the existing scrollx script.

when gf clicked
forever
set [scrollx v] to (offset)
end

Last edited by fg123 (2012-10-29 17:43:13)


Hai.

Offline

 

#4 2012-12-27 16:41:16

joefarebrother
Scratcher
Registered: 2011-04-08
Posts: 1000+

Re: Need Help with Infinite Scrolling.....

That's a LONG script. You might want to consider spiting it up into separate subscripts and use the BROADCAST AND WAIT block.


My latest project is called http://tinyurl.com/d2m8hne! It has http://tinyurl.com/d395ygk views, http://tinyurl.com/cnasmt7 love-its, and http://tinyurl.com/bwjy8xs comments.
http://tinyurl.com/756anbk   http://tinyurl.com/iplaychess

Offline

 

Board footer