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

#1 2011-05-26 12:22:55

puppylover52
Scratcher
Registered: 2008-01-08
Posts: 19

Help with game scripting please!

I'm trying to make a game, But.. Im not really sure, about almost any scripting XD

Can someone please help with like, the basic scripting you'd need for a game.

Offline

 

#2 2011-05-26 13:17:10

wmays
Scratcher
Registered: 2008-05-10
Posts: 500+

Re: Help with game scripting please!

What kind of game?

Is it a top down game, a platform game, or something else?


http://i42.tinypic.com/2z5vcz9.gif
http://phpscripthost.comoj.com/imagescripts/ipimg.php

Offline

 

#3 2011-05-26 13:27:17

deerel
Scratcher
Registered: 2008-08-23
Posts: 89

Re: Help with game scripting please!

learn by reading others' code, find some project which contains bits of behaviour that is similar to your goal and learn by looking how it was implemented; I recommend learning from authors who prefer doing good code, for example Paddle2See or archmage.

Offline

 

#4 2011-05-28 07:45:35

PlutoIsHades
Scratcher
Registered: 2010-10-18
Posts: 1000+

Re: Help with game scripting please!

Watch some tutorial vids.  The type of script depends on the program you're trying to make.  Also if you find a game you like you can download it and look at the script.


Minecraft, Redwall, and Cyberchase fan, and PROUD.

Offline

 

#5 2011-05-28 16:26:35

scmb1
Scratch Team
Registered: 2009-03-19
Posts: 1000+

Re: Help with game scripting please!

I'm glad you want to expand your Scratch knowledge. I've found that the best way to learn Scratch is often experimentation. If you have any specific questions, post them and people will gladly help you.  smile 

To get you started, here is one way to move a sprite with the arrow keys:
http://img29.imageshack.us/img29/1538/simplemovement.gif


http://i48.tinypic.com/2z5pqad.png

Offline

 

#6 2011-05-28 19:17:51

flyingstingray
Scratcher
Registered: 2011-05-27
Posts: 3

Re: Help with game scripting please!

Well if you want some help with scripting look up on scratch the type of game you want and then download it and look at the script

Offline

 

#7 2011-05-28 20:59:59

ssss
Scratcher
Registered: 2007-07-29
Posts: 1000+

Re: Help with game scripting please!

There are demo projects inside Scratch  wink   You should be able to view them  wink
Scratch on!


Hey.  It's me SSSS, back from the dead!  smile

Offline

 

#8 2011-05-29 00:11:51

Tainosan
Scratcher
Registered: 2011-05-28
Posts: 9

Re: Help with game scripting please!

Another way to do move your character is to do this
[blocks]
<when[ right arrow ]key pressed>
<move( 10 )steps>
<point in direction

Choose which ever option on the point in direction box that corresponds to the direction you want your character to move. Hope this helped!

Offline

 

#9 2011-05-29 11:09:22

emboar30
Scratcher
Registered: 2011-05-03
Posts: 100+

Re: Help with game scripting please!

If youre doing a racing game make a variable called velocity. Then make it so that when left and right key are pressed the sprite will rotate. Then make a script that says forever move velocity steps and when up and down key pressedchange velocity by a small amount up and down.


http://scratch.mit.edu/static/icons/buddy/788987_med.png?t=2011-05-02+15%3A14%3A41
I is epiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiic!     See my stuff here!!!!!

Offline

 

Board footer