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

#1 2011-04-16 18:59:34

VanillaCreme
Scratcher
Registered: 2010-11-05
Posts: 1000+

I Need A Bouncing Script!

Hello! I Am making this game called nom nom nom lol!n feels weird saying that! any way in the game you are a hamster trying to get all the fruit but avoiding th evil hamsters that will chase you EVERYWHERE! Really i need help with the whole thing! this will be my first platform game so i REALLY Need Help!                                                        A Few Hours Later.....Okay! Now I Need A Walking Script! Thanks!

Last edited by VanillaCreme (2011-04-17 07:47:50)


http://www.prguitarman.com/icon/poptartFINALTINY.gif
http://i49.tinypic.com/6yo39h.png

Offline

 

#2 2011-04-16 20:05:29

VanillaCreme
Scratcher
Registered: 2010-11-05
Posts: 1000+

Re: I Need A Bouncing Script!

bump......


http://www.prguitarman.com/icon/poptartFINALTINY.gif
http://i49.tinypic.com/6yo39h.png

Offline

 

#3 2011-04-16 20:22:05

MoreGamesNow
Scratcher
Registered: 2009-10-12
Posts: 1000+

Re: I Need A Bouncing Script!

<when green flag clicked>
<forever>
   <if><< <key[ UP ]pressed?> <and> <touching[ Ground ]> >>
      <repeat( 20 )>
         <change y by( 4 )>
         <if><touching[ ceiling ]>
            <change y by( -4 )>
         <end>
      <end>
   <end>
<end>


http://images2.layoutsparks.com/1/218929/rubiks-cube-animated-rotating.gif
"Cogito ergo sum" --  I think, therefore I am

Offline

 

#4 2011-04-16 20:30:38

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: I Need A Bouncing Script!

http://scratch.mit.edu/projects/Magnie/701486 - I hope that fixes your problem  smile

Last edited by Magnie (2011-04-16 20:37:26)

Offline

 

#5 2011-04-16 21:56:57

VanillaCreme
Scratcher
Registered: 2010-11-05
Posts: 1000+

Re: I Need A Bouncing Script!

bump


http://www.prguitarman.com/icon/poptartFINALTINY.gif
http://i49.tinypic.com/6yo39h.png

Offline

 

#6 2011-04-17 07:45:58

VanillaCreme
Scratcher
Registered: 2010-11-05
Posts: 1000+

Re: I Need A Bouncing Script!

Okay Jumping Is Working! Now I Need A Walking Script..The Person You Play Is Like A Ball So How Do I Do That?


http://www.prguitarman.com/icon/poptartFINALTINY.gif
http://i49.tinypic.com/6yo39h.png

Offline

 

#7 2011-04-17 08:44:33

MoreGamesNow
Scratcher
Registered: 2009-10-12
Posts: 1000+

Re: I Need A Bouncing Script!

Somebody (not sure who) invented a cool way of using a second costume equal in size to the first to make sensors.  In my "Box" series, I made the floor gray and the walls black.  Then:
<when green flag clicked>
<forever>
   <if><key[ right ]pressed?>
      <change x by( 4 )>
      <if><touching color[ black ]>
         <change x by( -4 )>
      <end>
   <end>
<end>

Of course, the downside is that you can see changes in color in the wall/floor.  This can be lessened by choosing colors that are very close to each other for the wall and floor.

Last edited by MoreGamesNow (2011-04-17 08:45:47)


http://images2.layoutsparks.com/1/218929/rubiks-cube-animated-rotating.gif
"Cogito ergo sum" --  I think, therefore I am

Offline

 

#8 2011-04-18 11:34:09

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: I Need A Bouncing Script!

If it's a ball and you want it to roll, you might be able to use the Turn block and have it move forward every turn, so it looks like it's rolling.  smile

Offline

 

#9 2011-04-18 12:12:04

Severus14
Scratcher
Registered: 2011-02-03
Posts: 62

Re: I Need A Bouncing Script!

<when green flag clicked>
<set{ Xvelocity}to(Xvelocity*0.98
<change x by(Xvelocity
<when[right arrow]key pressed
<change{Xvelocity}by( 3
<when[left arrow]key pressed
<change{Xvelocity}by( -3

Offline

 

#10 2011-04-19 09:48:29

VanillaCreme
Scratcher
Registered: 2010-11-05
Posts: 1000+

Re: I Need A Bouncing Script!

Magnie wrote:

If it's a ball and you want it to roll, you might be able to use the Turn block and have it move forward every turn, so it looks like it's rolling.  smile

Ohhh Thanks! it is like a ball


http://www.prguitarman.com/icon/poptartFINALTINY.gif
http://i49.tinypic.com/6yo39h.png

Offline

 

Board footer