Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Disappear OnClick
06-06-2010, 12:11 AM
Post: #1
Disappear OnClick
Could someone help me out with a code that I can use to make an object disappear when it is clicked? I'm working on a simple shooter game and need certain enemies to disappear when you click them.
Find all posts by this user
Quote this message in a reply
06-20-2010, 07:08 PM
Post: #2
RE: Disappear OnClick
paste this code on the frame.

enemy_mc.onPress = function() {
enemy_mc._visible = 0;
};


Here 'enemy_mc' is your object.







cltutwiler Wrote:Could someone help me out with a code that I can use to make an object disappear when it is clicked? I'm working on a simple shooter game and need certain enemies to disappear when you click them.
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)