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

#1 2012-06-02 20:09:44

powerpoint56
Scratcher
Registered: 2012-04-19
Posts: 500+

ScrollX-ScrollY

How can I make a enemy that moves around in a ScrollX-ScrollY game if he's forever going to ScrollX x 480 + ? and ScrollY x 360 + ? ? Thanks!


http://i48.tinypic.com/2072ctw.gif

Offline

 

#2 2012-06-02 20:38:43

AtomicBawm3
Scratcher
Registered: 2009-06-27
Posts: 1000+

Re: ScrollX-ScrollY

powerpoint56 wrote:

How can I make a enemy that moves around in a ScrollX-ScrollY game if he's forever going to ScrollX x 480 + ? and ScrollY x 360 + ? ? Thanks!

Simply subtract the offset you want from the ScrollX and ScrollY...that should work.


http://i50.tinypic.com/j0yw0p.jpg

Offline

 

#3 2012-06-18 10:24:18

powerpoint56
Scratcher
Registered: 2012-04-19
Posts: 500+

Re: ScrollX-ScrollY

AtomicBawm3 wrote:

powerpoint56 wrote:

How can I make a enemy that moves around in a ScrollX-ScrollY game if he's forever going to ScrollX x 480 + ? and ScrollY x 360 + ? ? Thanks!

Simply subtract the offset you want from the ScrollX and ScrollY...that should work.

thanks!


http://i48.tinypic.com/2072ctw.gif

Offline

 

Board footer