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

#1 2009-07-21 07:34:52

reddsky
Scratcher
Registered: 2009-07-20
Posts: 10

I'm new and need help making a platform game....

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  smile

P.S. I mostly want to know about making objects solid!

Last edited by reddsky (2009-07-21 07:43:27)

Offline

 

#2 2009-07-21 07:38:10

dav09
Scratcher
Registered: 2009-03-25
Posts: 1000+

Re: I'm new and need help making a platform game....

http://scratch.mit.edu/projects/dav09/540507 download this and this might help you with something

Offline

 

#3 2009-07-21 07:42:38

dav09
Scratcher
Registered: 2009-03-25
Posts: 1000+

Re: I'm new and need help making a platform game....

-How to walk into other rooms




-Reddsky  smile

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

 

#4 2009-07-23 20:14:09

fireball123
Scratcher
Registered: 2008-05-08
Posts: 1000+

Re: I'm new and need help making a platform game....

Never fear! I made a tutorial about it

just click here

Last edited by fireball123 (2009-07-23 20:14:32)


I did it for the Lolz

Offline

 

#5 2009-07-23 22:44:50

billyedward
Scratcher
Registered: 2008-01-03
Posts: 500+

Re: I'm new and need help making a platform game....

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.


"I'd love to change the world, but they haven't released the source code yet."
Check out the latest version of Streak --> http://billy.scienceontheweb.net/Streak

Offline

 

#6 2009-07-23 22:58:46

billyedward
Scratcher
Registered: 2008-01-03
Posts: 500+

Re: I'm new and need help making a platform game....

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!


"I'd love to change the world, but they haven't released the source code yet."
Check out the latest version of Streak --> http://billy.scienceontheweb.net/Streak

Offline

 

#7 2009-07-31 07:38:02

Sonicadvaned
Scratcher
Registered: 2009-07-29
Posts: 5

Re: I'm new and need help making a platform game....

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

 

#8 2009-08-05 17:31:51

coolperson
Scratcher
Registered: 2007-08-21
Posts: 1000+

Re: I'm new and need help making a platform game....

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)


Coolperson- 2012 National Vex Robotics Finalist!
http://www.scratch.mit.edu/ext/youtube/?v=sn7p84DQFyk

Offline

 

#9 2010-03-15 19:20:51

ace1600
Scratcher
Registered: 2010-03-14
Posts: 1

Re: I'm new and need help making a platform game....

How do you find a platform for an OS?

Offline

 

#10 2010-03-15 19:39:17

soupoftomato
Scratcher
Registered: 2009-07-18
Posts: 1000+

Re: I'm new and need help making a platform game....

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.


I'm glad to think that the community will always be kind and helpful, the language will always be a fun and easy way to be introduced into programming, the motto will always be: Imagine, Program, Share - Nomolos

Offline

 

Board footer