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

#1 2008-05-02 10:38:55

Freestylin_Monkey
Scratcher
Registered: 2008-03-24
Posts: 100+

I have 2 problems, can you fix ithem?

I made a game called Chinyey's adventure and right now I am at part 3 camache run-in, in that game you are a man named reon because I havnt introduced chinyey yet, Eron can jump and even attack enemys by slashing, in the camache battle you are fighting two brown mohawk characters one with a spear and one with a sword. I made them so that they are attack and it works because when you touch there red slashes and attacks you get hurt and thats what i wanted----------Now here is the problem.     I gave the same  scratch blocks to the camache brothers, but for some reason when they dont get hurt and if you notice Eron walks behind the camache brothers so for some reason if i said this-------------for a camche brother...

<when green flag clicked><forever><if><touching[ eron<say[ hey you ]for( 3 )secs>

When the camache brother touches eron eron gets hurt but the camache brother says nothing as if he wasnt there.

I thought this only happened if getting hurt but if I say this for eron...


<when[ space ]key pressed><if><touching color[ orange(door)<broadcast[ the next level


but eron doesnt, CAN YOU HELP ME?

freestylin_Monkey-  Chinyeys adventure part 3 camache run-in


I am Lord of Lords, I am King of Kings, I AM MASTERS OF ALL MASTERS!!!
-But I am a servant of my mother

Offline

 

#2 2008-05-02 12:24:23

Mayhem
Scratcher
Registered: 2007-05-26
Posts: 1000+

Re: I have 2 problems, can you fix ithem?

Take the section of code that checks for being hit and being dead, and place it in its own forever loop with its own "when I recieve barfight" start block.

The way you have it set up at the moment, it does not get checks during any of the repeats that you use for animation.


Web-spinning Spider:  http://scratch.mit.edu/projects/Mayhem/18456
3D Dungeon Adventure:  http://scratch.mit.edu/projects/Mayhem/23570
Starfighter X: http://scratch.mit.edu/projects/Mayhem/21825
Wandering Knight: http://scratch.mit.edu/projects/Mayhem/28484

Offline

 

#3 2008-05-02 12:53:51

Freestylin_Monkey
Scratcher
Registered: 2008-03-24
Posts: 100+

Re: I have 2 problems, can you fix ithem?

thank man, it works!  smile


I am Lord of Lords, I am King of Kings, I AM MASTERS OF ALL MASTERS!!!
-But I am a servant of my mother

Offline

 

Board footer