A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: AS2 Dynamic Text help pls

  1. #1
    Member
    Join Date
    Jul 2008
    Posts
    30

    Unhappy AS2 Dynamic Text help pls

    hi, im making an "rpg" game and i need to make it so when you hit level 3 you can press CTRL to use a water sword. this is my script:
    onClipEvent(enterFrame){
    if(_root.LVL==3){
    if(Key.isDown(Key.CONTROL)){
    gotoAndStop(6);
    _yscale =100;
    }
    }
    }

    the gotoandstop(6) is the frame of my character wherre hes holding the sword,
    it all works, just. it ONLY works on level 3, can i make it so if it 3 or more i can do it?
    If so please help me.

    Thanks
    Last edited by teh shame; 09-16-2008 at 02:13 AM.

  2. #2
    :
    Join Date
    Dec 2002
    Posts
    3,518
    Code:
    if (_root.LVL >= 3) {
    	if (Key.isDown(Key.CONTROL)) {
    		gotoAndStop(6);
    		_yscale = 100;
    	}
    }

  3. #3
    Member
    Join Date
    Jul 2008
    Posts
    30
    hanks a bunch

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center