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

#1 2011-06-06 16:32:41

Aliendude12
New Scratcher
Registered: 2011-04-21
Posts: 28

Help! I need Somebody! Help! :O :O :O :( :( :(

Hello Peepz!  smile   cool  I am having troublez with my new game called Cubio. It is a remake of the game Mario. :rolleyes:Anyway...I am using scrollX which makes it scroll throughout the level. sad  I am trying to make a coompa walk back and forth with scrollX. So pleaz HELP ME! yikes   yikes   yikes   yikes   yikes   yikes   yikes

Offline

 

#2 2011-06-06 19:32:40

sheepy123
Scratcher
Registered: 2011-02-15
Posts: 72

Re: Help! I need Somebody! Help! :O :O :O :( :( :(

I don't know how, but can you tell me when you find out?


http://scratch.mit.edu/static/icons/gallery/131866.png?t=2011-07-23+16%3A09%3A20Ninja vs Dragons It doesn't get better than this.

Offline

 

#3 2011-06-06 19:39:37

Kileymeister
Scratcher
Registered: 2008-04-17
Posts: 1000+

Re: Help! I need Somebody! Help! :O :O :O :( :( :(

You can give the goomba a variable called ScrollXPosition or some name like that.  Set that variable to where you want the goomba to be on the X axis (if the goomba is to the right of the starting position, set it to a positive number.  If it's to the left, set it to a negative number).  Now give some scripts like:
http://i51.tinypic.com/1z4v1hd.gif
The first script will set it to where it should be when it's affected by the ScrollX variable, and the second script makes it go back and forth.

Basically, whatever way you want the goomba to move horizontally, use "change ScrollXPosition by ()" instead of "change x by ()".

Last edited by Kileymeister (2011-06-06 21:13:46)


I'm back, and showcasing two new* projects!  Click left or right on the image below to see!
http://img109.imageshack.us/img109/7905/part1l.pnghttp://img859.imageshack.us/img859/6417/part2bf.png

Offline

 

#4 2011-06-06 21:05:21

Aliendude12
New Scratcher
Registered: 2011-04-21
Posts: 28

Re: Help! I need Somebody! Help! :O :O :O :( :( :(

THANKS! I think I'll Try it! You just saved me from a whole day's worth of figuring out!  smile  :DWell since I'm a new scratcher!  cool  I'll put the link in here so you can check it out when it's done. smile  I also give you permission to remix it. That is if you are even interested in looking at it. Well THANKS AGAIN!  big_smile   tongue   yikes

Offline

 

#5 2011-06-07 17:00:45

JPY
Scratcher
Registered: 2010-07-28
Posts: 61

Re: Help! I need Somebody! Help! :O :O :O :( :( :(

Kileymeister wrote:

<when green flag clicked>
<forever><
<set x to(  (( scrollx <+> scrollxposition ))

it works. i tried it.  yikes  and  big_smile

Last edited by JPY (2011-06-07 17:08:02)


if you're a Sonic Fan, you've gotta try Sonic Generations!                                                         click  here for Sonic Fanart!

Offline

 

Board footer