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

#1 2013-03-07 19:40:45

horsenkat
Scratcher
Registered: 2010-09-25
Posts: 23

Stage "loop"

For my new game, I want to make it so that there's no real "end" to the map, and it essentially loops, so that the characters won't get stuck in a corner. Is there any way to do that? I need it to essentially "loop" around so that if you go off one side of the map you'll end up on the other side. Is there any way to do this?


http://29.media.tumblr.com/tumblr_l8ewen1qwk1qzo7k7o1_500.gif

Offline

 

#2 2013-03-07 22:48:31

bob6
Scratcher
Registered: 2010-07-01
Posts: 100+

Re: Stage "loop"

First: is it a scroller?
If not, then you can simply do this:

when gf clicked
forever
 if <(x position) > (239)>
  set x to (-239)
 end
 if <(x position) < (-239)>
  set x to (239)
 end 
end

Last edited by bob6 (2013-03-07 22:49:58)


http://i46.tinypic.com/3148ksz.gif

Offline

 

Board footer