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

#1 2012-02-21 17:49:41

GIRLIKESTaCoEs
New Scratcher
Registered: 2012-02-20
Posts: 6

Adventure in Zingoo: NEED HELP!

Ok, so I am off to a good start. I figured out how to make the Sprite move, but I need to know how to make it jump and get down. Also, when I do the "switch to costume 1" and "Costume 2", it doesn't work! Please help!

Offline

 

#2 2012-02-21 17:52:55

GIRLIKESTaCoEs
New Scratcher
Registered: 2012-02-20
Posts: 6

Re: Adventure in Zingoo: NEED HELP!

Also, how do I make enemies that actually hurt or kill?

Offline

 

#3 2012-02-21 18:13:51

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: Adventure in Zingoo: NEED HELP!

http://scratch.mit.edu/forums/viewtopic.php?id=88043 has a good list of helpful scripts for things like movement, walls, etc.

For enemies, you would create a variable called "enemy health" and then have a script something like:

set [health v] to (10)
show
forever
    if <(health) < (1)>
        hide
    else
        if <touching color [#FF0000]?>
            change [health v] by (-1)
        end
    end
If the enemy touches the color red, it will loose one health and once the enemy's health is less than 0 it'll disappear.

Hope that helps you get started.  smile

Last edited by Magnie (2012-02-21 18:16:18)

Offline

 

#4 2012-02-21 18:21:41

GIRLIKESTaCoEs
New Scratcher
Registered: 2012-02-20
Posts: 6

Re: Adventure in Zingoo: NEED HELP!

Wow...lots of problemos... if someone answers my ":how to hurt/kill" question, how do you ATTACK?

Offline

 

#5 2012-02-21 18:26:52

GIRLIKESTaCoEs
New Scratcher
Registered: 2012-02-20
Posts: 6

Re: Adventure in Zingoo: NEED HELP!

Thanks Magnie!

Offline

 

#6 2012-02-21 18:46:06

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: Adventure in Zingoo: NEED HELP!

You can use the same script for the player as well but instead of it touching red, it could touch the enemy. Like so:

set [health v] to (10)
show
forever
    if <(health) < (1)>
        hide
    else
        if <touching [enemy v]?>
            change [health v] by (-1)
        end
    end

Offline

 

#7 2012-02-27 12:23:09

GIRLIKESTaCoEs
New Scratcher
Registered: 2012-02-20
Posts: 6

Re: Adventure in Zingoo: NEED HELP!

big_smile  thanks again!

Offline

 

Board footer