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
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
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.
Offline
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.
To get you started, here is one way to move a sprite with the arrow keys:
Offline
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
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
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.
Offline