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

#1 2008-06-04 19:15:19

Hoopla
Scratcher
Registered: 2007-10-05
Posts: 100+

I Need Game-making tips!!!!

Hi.
I would like to know how to make good games! Could someone please answer these questions?

How do you make smooth jumping?

How do you make stand-on-able platforms?

Thanks!
         -Hoopla
wink


Smiley and Edwin!  smile  http://freewebs.com/smileyandedwin/
Scratch on, everypeoples!    DREAM CATCHER MY RANK: *

Offline

 

#2 2008-06-04 19:17:53

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: I Need Game-making tips!!!!

To make smooth jumping, just use velocity! Velocity is simple, and to incorporate it into your stand-on-able platforms, I'll make a very long post, coming up next!

Offline

 

#3 2008-06-04 19:18:53

Hoopla
Scratcher
Registered: 2007-10-05
Posts: 100+

Re: I Need Game-making tips!!!!

Thanks!


Smiley and Edwin!  smile  http://freewebs.com/smileyandedwin/
Scratch on, everypeoples!    DREAM CATCHER MY RANK: *

Offline

 

#4 2008-06-04 19:29:40

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: I Need Game-making tips!!!!

To start, we want to be able to use velocity, which will be using these scripts here:

[blocks]

make a variable called "velocityY"

<when green flag clicked>
<forever>
<if><<  <not>  >><touching[ ground color/ground sprite>
<change{ <{ velocityY }> }by( -0.1 )> (you can alter the number to make him jump higher/lower
<end>
<if><touching[ ground color/ground sprite>
<set{ velocityY }to( 0.1
<end>
<end>

This will simply give you... nothing. To add functionality to our velocity, just use this:

<when green flag clicked>
<forever>
<change y by( velocityY
<end>
<end>

That should just make us not go through a platform and make us fall if we are not touching the ground sprite. To truly add functionality to our velocity, simply add the script to the sprite:

<when green flag clicked>
<forever>
<if><touching[ ground color/ground sprite>
<if> <key[ space/up arrow ]pressed?>
<set{ velocityY }to( 8 (you can change to make him jump higher/lower.

[/blocks]

That should work, and if it doesn't, just tell me and I'll see what's wrong!

Offline

 

#5 2008-06-04 19:37:19

CFCRubiks
Scratcher
Registered: 2008-05-11
Posts: 100+

Re: I Need Game-making tips!!!!

It works. Thanks (so what if I eavesdropped  smile  )

Offline

 

#6 2008-06-05 15:18:30

mletreat
Scratcher
Registered: 2008-05-01
Posts: 100+

Re: I Need Game-making tips!!!!

Coolstuff -

thanks for helping answer other community members questions, it is great to see this kind of collaboration  smile

Offline

 

#7 2008-06-05 15:33:29

funkymonkey
Scratcher
Registered: 2007-06-03
Posts: 1000+

Re: I Need Game-making tips!!!!

this should be in the all about scratch forum, not here


http://i243.photobucket.com/albums/ff67/hprules_photos/banner2.jpg
Kuzimu: Dawn of a New Age                                                                                                  Coming May 2010

Offline

 

#8 2008-06-05 15:48:30

geckofreak
Scratcher
Registered: 2007-12-20
Posts: 100+

Re: I Need Game-making tips!!!!

To prevent the sprite from sinking into a platform use this script
<when green flag clicked>
<forever>
      <if><touching color[ Platform color
           <change y by( 1 )
      <end>
<end>

Last edited by geckofreak (2008-06-05 16:03:43)


http://img361.imageshack.us/img361/645/supersmashbroscharacterzg7.gif
cool  My Wii Friend Code 5069-3634-2461  cool

Offline

 

#9 2008-06-05 15:58:29

geckofreak
Scratcher
Registered: 2007-12-20
Posts: 100+

Re: I Need Game-making tips!!!!

You also might want to improve your motion scripts:

<when green flag clicked>
<forever>
     <if><key[ right arrow ]pressed?>
          <point in direction( right )
          <change x by( 3 )
     <else>
          <if><key[ left arrow ]pressed?>
               <point in direction( left )
               <change x by( -3 )
          <end>
     <end>
<end>

Last edited by geckofreak (2008-06-05 16:02:26)


http://img361.imageshack.us/img361/645/supersmashbroscharacterzg7.gif
cool  My Wii Friend Code 5069-3634-2461  cool

Offline

 

#10 2008-06-05 15:59:53

Bluestribute
Scratcher
Registered: 2008-01-24
Posts: 1000+

Re: I Need Game-making tips!!!!

geckofreak wrote:

You also might want to improve your motion scripts:

<when green flag clicked>
<forever>
     <if><key[ right arrow ]pressed?>
          <point in direction( right )
          <change x by( 3 )
     <else>
          <if><key[ left arrow ]pressed?>
               <point in direction( left )
               <change x by( -3 )
          <end>
     <end>
<end>

I fixed it  smile


http://img247.imageshack.us/img247/1204/bluestributett4.jpg
That's my PSN ID. I know tons of COD4 glitches. Add me as your friend. Oh, and get a headset

Offline

 

#11 2008-06-05 16:36:14

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: I Need Game-making tips!!!!

mletreat wrote:

Coolstuff -

thanks for helping answer other community members questions, it is great to see this kind of collaboration  smile

thank you  smile   big_smile

Offline

 

#12 2008-06-05 16:55:58

geckofreak
Scratcher
Registered: 2007-12-20
Posts: 100+

Re: I Need Game-making tips!!!!

If you want smooth jumping you don't need velocity. You can use this:
<when green flag clicked>
  <forever>
       <if><key[ up arrow ]pressed?>
            <set{ Jumping }to( 1 )
            <repeat( 4 times )
                 <change y by( 2 )
            <end>
            <repeat( 6 times )
                 <change y by( 4 )
            <end>
            <repeat( 10 times )
                 <change y by( 6 )
            <end>
            <repeat until> <touching color[ platform color
                 <change y by( -5 )
            <end>
       <end>
  <end>


http://img361.imageshack.us/img361/645/supersmashbroscharacterzg7.gif
cool  My Wii Friend Code 5069-3634-2461  cool

Offline

 

#13 2008-06-05 17:01:18

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: I Need Game-making tips!!!!

geckofreak wrote:

If you want smooth jumping you don't need velocity. You can use this:
<when green flag clicked>
  <forever>
       <if><key[ up arrow ]pressed?>
            <set{ Jumping }to( 1 )
            <repeat( 4 times )
                 <change y by( 2 )
            <end>
            <repeat( 6 times )
                 <change y by( 4 )
            <end>
            <repeat( 10 times )
                 <change y by( 6 )
            <end>
            <repeat until> <touching color[ platform color
                 <change y by( -5 )
            <end>
       <end>
  <end>

But my system merges both of her questions together. Plus, I tried doing that once, it gets really quite blocky when jumping off high things.

Offline

 

#14 2008-06-05 17:31:17

geckofreak
Scratcher
Registered: 2007-12-20
Posts: 100+

Re: I Need Game-making tips!!!!

You will also need to make the top line of the platforms a different color and use this script:
<when green flag clicked>
  <forever>
       <if> <not><touching color[ top line color ] >>
            <if> <( <{ jumping  }> <=> 0 )>
                 <repeat until><touching color[ top line color
                 <change y by( -5
                 <end>
            <end>
       <end>
  <end>

Last edited by geckofreak (2008-06-05 17:32:29)


http://img361.imageshack.us/img361/645/supersmashbroscharacterzg7.gif
cool  My Wii Friend Code 5069-3634-2461  cool

Offline

 

#15 2008-06-05 17:54:26

Hoopla
Scratcher
Registered: 2007-10-05
Posts: 100+

Re: I Need Game-making tips!!!!

coolstuff wrote:

But my system merges both of her questions together. Plus, I tried doing that once, it gets really quite blocky when jumping off high things.

I'm a boy!!!!!  mad

That's okay though, my user name doesn't suggest what gender I am.


Smiley and Edwin!  smile  http://freewebs.com/smileyandedwin/
Scratch on, everypeoples!    DREAM CATCHER MY RANK: *

Offline

 

#16 2008-06-05 17:55:25

Bluestribute
Scratcher
Registered: 2008-01-24
Posts: 1000+

Re: I Need Game-making tips!!!!

Everyone seems to get genders wrong. Lets say, if your name is Bluestribute, your a boy, and everyone else if just "them"  smile   lol


http://img247.imageshack.us/img247/1204/bluestributett4.jpg
That's my PSN ID. I know tons of COD4 glitches. Add me as your friend. Oh, and get a headset

Offline

 

#17 2008-06-05 18:39:53

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: I Need Game-making tips!!!!

Bluestribute wrote:

Everyone seems to get genders wrong. Lets say, if your name is Bluestribute, your a boy, and everyone else if just "them"  smile   lol

For some reason, I've always thought of you as a boy.

Offline

 

#18 2008-06-05 18:42:26

Bluestribute
Scratcher
Registered: 2008-01-24
Posts: 1000+

Re: I Need Game-making tips!!!!

coolstuff wrote:

Bluestribute wrote:

Everyone seems to get genders wrong. Lets say, if your name is Bluestribute, your a boy, and everyone else if just "them"  smile   lol

For some reason, I've always thought of you as a boy.

Oh, but I Am


http://img247.imageshack.us/img247/1204/bluestributett4.jpg
That's my PSN ID. I know tons of COD4 glitches. Add me as your friend. Oh, and get a headset

Offline

 

#19 2008-06-05 18:53:57

Hoopla
Scratcher
Registered: 2007-10-05
Posts: 100+

Re: I Need Game-making tips!!!!

Geckofreak, I tried your procedure, but I think I may have messed up, because the sprite just floats in midair. I'm confused.


Smiley and Edwin!  smile  http://freewebs.com/smileyandedwin/
Scratch on, everypeoples!    DREAM CATCHER MY RANK: *

Offline

 

#20 2008-06-05 21:48:33

geckofreak
Scratcher
Registered: 2007-12-20
Posts: 100+

Re: I Need Game-making tips!!!!

I fixed it and posted it as a project. I also fixed your level switching procedure. http://scratch.mit.edu/projects/geckofreak/181672


http://img361.imageshack.us/img361/645/supersmashbroscharacterzg7.gif
cool  My Wii Friend Code 5069-3634-2461  cool

Offline

 

Board footer