PDA

View Full Version : I need help


nhsguitar810
10-22-2009, 01:19 PM
How do I make a charcter dissipar when a sword strikes him?

x2495iiii
10-22-2009, 02:47 PM
Put in a function which tests to see if the sword is a certain amount (like .2 meters) from the character, then if that function is true, have the character set isShowing to false.

xxledzeppelin2x3
10-30-2009, 10:38 PM
if (true)
sword is within .2 meters of zombie
else is showing false?

i'm not sure haha i kinda want to learn myself, i didnt test it, but oh x2495 posted just do that but if that doesnt work ( which it probably will :) ) try this.

x2495iiii
10-31-2009, 03:10 AM
Actually xxx (that's what I'm calling you for short, I hope that's okay), what you posted and what I posted are the same thing, except that your function is in the wrong place.

What you said:
"if (true)
sword is within .2 meters of zombie
else is showing false"

What it should say:
"if (sword is within .2 meters of zombie)
character set isShowing to false
else
do nothing"

Great minds think alike, right?

xxledzeppelin2x3
10-31-2009, 11:28 AM
haha yeahh ;), i didnt look on alice so i didnt quite get the exact coding terms with the perenthesis and the correct wording but i guess i could have confused him not being able to find word for word what i said, so go with his ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

:)