I can help you with that! Here's how you do it. You put in a script that says "If touching." You can find these in the "sensors" menu of Scratch.
Let's say I want to make a project where if a the Red Ball touches a Blue Ball, the blue ball disappears.
I would insert this script into the BLUE BALL:
When [flag] is clicked,
forever
if <touching [red ball]>
hide
---------------------------------------
Whenever you want to sense something, go to the sensors area of Scratch.
Last edited by joeyman (2009-04-20 22:22:00)
Offline
joeyman wrote:
I can help you with that! Here's how you do it. You put in a script that says "If touching." You can find these in the "sensors" menu of Scratch.
Let's say I want to make a project where if a the Red Ball touches a Blue Ball, the blue ball disappears.
I would insert this script into the BLUE BALL:
When [flag] is clicked,
forever
if <touching [red ball]>
hide
---------------------------------------
Whenever you want to sense something, go to the sensors area of Scratch.
But..i wanna make a platformer
Offline
[blocks]
<when green flag clicked>
<forever>
<if> <touching[ red ball
<hide>
<end>
[/blocks]
Last edited by joeyman (2009-04-20 22:24:12)
Offline
Oh, you want to make a platformer, eh?
Oof...
Um... I can make platformers, but the scripts are pretty complicated! I ould download another platformer and remix it.
Offline
joeyman wrote:
Oh, you want to make a platformer, eh?
Oof...
Um... I can make platformers, but the scripts are pretty complicated! I ould download another platformer and remix it.
oh, can uuse blocks[blocks]?
Last edited by matt99 (2009-04-20 22:27:15)
Offline
I wrote a tutorial on how to make a scrolling platformer game.
See it @ http://archblogger.wordpress.com/2008/11/06/make-a-game-like-super-mario-world-demo/
Its not really that hard.
Last edited by archmage (2009-04-20 22:33:15)
Offline
Try downloading and following the example code from the blog post.
Offline
not hard at all to make.
assuming you have a variable called gravity:
basic concept:
if its touching the ground, gravity is 0 and its y is changed by one
else change gravity by a negative number
then simply change y by gravity and add your key codes
Offline
matt99 wrote:
archmage wrote:
Try downloading and following the example code from the blog post.
blog?
right here
http://archblogger.wordpress.com/2008/11/06/make-a-game-like-super-mario-world-demo/
Offline
Leesha300 wrote:
I Need Help I Cant Get My Looks Into My Scripts Please Tell Me How!!!
I'd like to help...but I don't know what you are asking. Do you mean you want to load a picture into a Scratch project? If that is what you are asking, you can usually just drag the picture using your mouse and drop it onto an open Scratch project when you see the little plus sign appear. I hope that helps.
Offline