Alice Community  

Go Back   Alice Community > Alice 2 > How do I...?

Reply
 
Thread Tools Display Modes
how do i disable within a game?
Old
fourbros
Senior Member
 
fourbros's Avatar
 
Status: Offline
Posts: 476
Join Date: Nov 2011
Location: Right Behind You...
Question how do i disable within a game? - 11-19-2011, 01:12 PM

my problem is this, I have a zombie that sets showing to false if the bullet is near him but the zombie still hurts me.
   
Reply With Quote
Old
sfunk
Senior Member
 
sfunk's Avatar
 
Status: Offline
Posts: 1,112
Join Date: Mar 2011
Location: I don't know
Default 11-20-2011, 04:13 AM

if you are using if/else statements (which if you are asking help on one of your games, you should really upload your world in your post so people can see what you did) to determine whether or not the zombie hurts you, lets say you have

(If zombie is whitin 1 meter of camera

players "health" decreases

else

blank)

Well if this is the type of method you are using, you should put this bit of code in their to make it work


(If zombie is within 1 meter of camera

(If zombie is showing == true
players "health" decreases

else

blank))


If you are stuck on a project, check out the tutorials I made here at this link:

http://alice.org/community/showthread.php?p=36778#post36778

There are lots of tutorials on it so far, including some youtube videos, check it out

Or..

Go to my youtube channel to check out my alice 2.2 tutorials I have there..

http://www.youtube.com/user/sfunk1992?feature=mhsn
   
Reply With Quote
Old
fourbros
Senior Member
 
fourbros's Avatar
 
Status: Offline
Posts: 476
Join Date: Nov 2011
Location: Right Behind You...
Default 11-20-2011, 10:48 AM

That worked really well thanks!
   
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Copyright ©2021, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.