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

#1 2009-04-25 15:25:08

shaltz7
Scratcher
Registered: 2009-04-24
Posts: 1

Help Me

How to i get it so i can make one person switch to his fighting costume and when he touches him with that fighting stance it hurts him? But not hurt him with just his normal stance???

Offline

 

#2 2009-04-25 15:35:59

Stickman704
Scratcher
Registered: 2009-01-31
Posts: 1000+

Re: Help Me

I'm thinking....

<when[ Whatever is the fighting key is ]key pressed>
<set{ Fighting }to(1

<when green flag clicked>
<forever if><( <{ Fighting }> <=> 1 )>
<switch to costume[ Fighting
<set{ If anyone gets in the way they die (Or something like that) }to( 1
<wait( Whatever )secsc>
<set{ If anyone gets in the way they die (Or something like that) }to( 0
<switch to costume[ Normal
<end>

[/blocks]

Then for the enemy:

<when green flag clicked>
<forever if><( <{  If anyone gets in the way they die (Or something like that) }> <=> 1 )>
<if><touching[ You or hero or whatever the player is called
<switch to costume[ Dead
<end>

[/blocks]
hope that helps!

Last edited by Stickman704 (2009-04-25 15:36:39)


Dun dun dun dun dun dun.... dun dun dun dun dun dun...  tongue

Offline

 

Board footer