Hi, I'm new and need help making a platform game; so far I've made a dog that can jump and walk, but I'm stuck on =
-How to make platforms(and other things) solid
-How to make enemies walk by themselves and attack
-How to create items that you can pick up and use (e.g. rope)
-How to do a menu (and level) page
-How to make a life- and points- system at the top of screen
-How to make my own background
-How to walk into other rooms
Please tell me by explaining which instructions (using the picture instructions e.g.<move( )steps><when green flag clicked>) I need for which sprite - and please tell me which of the above you are explaining - and nothing too long - thankyou!!!
-Reddsky
P.S. I mostly want to know about making objects solid!
Last edited by reddsky (2009-07-21 07:43:27)
Offline
http://scratch.mit.edu/projects/dav09/540507 download this and this might help you with something
Offline
-How to walk into other rooms
-Reddsky
sprites: the room
the door
the person
the person scripts:
<when green flag clicked>
<forever>
<if><touching color[ blue (make sure the door is blue)
<broadcast[ house (make new broadcasting variable)
door: nothing !
the room
<when I receive[ house
<show>
<go to front>
Last edited by dav09 (2009-07-21 07:52:35)
Offline
Never fear! I made a tutorial about it
just click here
Last edited by fireball123 (2009-07-23 20:14:32)
Offline
To make solid platforms, use sprites. I recommend you make them all one colour, and have this script in the main character sprite: <when green flag clicked>
<forever if><touching color[ Whatever colour your platforms are ]>
<change y by( 1 )>
<else>
<change y by( -1 )>
<end>
This puts your character always on top of any platforms it touches, and gravity pulls it down otherwise.
Offline
To make enemies move and attack, we need a motion script:
<when green flag clicked>
<forever>
<move( 1 )steps>
<if on edge, bounce>
<end>
Now, we need to make the enemies attack.
First, we don't want our enemy to move if it's attacking. So we'll use an if statement:
<when green flag clicked>
<forever>
<if><touching[ MainCharacter ]]
<move( 1 )steps>
<if on edge, bounce>
<else>
ATTACK CODE
<end>
<end>
Now, what do we need to do for the attack code?
First, Let's lower a 'health' variable.
Then, let's switch to a special attacking costume:
<change{ health }by( -1 ]]
<switch to costume[ attacking ]]
We then insert this into the ATTACK CODE section.
We now have a simple enemy, which follows its path and attacks if it touches the main sprite!
Offline
How to make a backround is easy 1.click on the blank square above the word stage.2.click on Edit below the Other Blank square.Them you can edit the backround.for more infomation try looking up on youtube.
Offline
For having enimies move, instead of [blocks]
<when[(blank) ]key pressed>
move 10 steps
have somthing like
<when green flag clicked>
move 10 steps [/blocks]
See, that way, instead of manual moving, it moves by itself!
Hope that helps!
Last edited by coolperson (2009-08-05 17:32:25)
Offline
ace1600 wrote:
How do you find a platform for an OS?
Welcome to Scratch ace1600. I believe the user 08jackt has a good base for a mock OS.
However, in the future do not reply to an old thread when you have a question. Use the "Post New Topic in th upper right hand corner of the forums.
Offline