Be a Supporter!

Help With Actionscript

  • 266 Views
  • 3 Replies
New Topic Respond to this Topic
toadmancody538
toadmancody538
  • Member since: May. 15, 2008
  • Offline.
Forum Stats
Member
Level 03
Blank Slate
Help With Actionscript 2009-01-24 22:33:40 Reply

I need help with my new flash I'm working on. I need a script where if a symbol gets from the right side of the screen to the left 4 times it sends you to a "You Lose" screen. Can anyone help?


I have to tell you something. I have canc-ZOMG A SHINY NEW PENNEY!

Best Webhosting EVER!!!

toadmancody538
toadmancody538
  • Member since: May. 15, 2008
  • Offline.
Forum Stats
Member
Level 03
Blank Slate
Response to Help With Actionscript 2009-01-24 22:35:44 Reply

The width of the flash is 550.


I have to tell you something. I have canc-ZOMG A SHINY NEW PENNEY!

Best Webhosting EVER!!!

Montycarlo
Montycarlo
  • Member since: Mar. 14, 2005
  • Offline.
Forum Stats
Member
Level 24
Blank Slate
Response to Help With Actionscript 2009-01-24 22:46:25 Reply

leftCount = 0;
onEnterFrame = function(){
if(instance._x <= 0 ){
leftCount ++;
instance._x = 550;
if(leftCount >= 4){
_root.gotoAndStop("Gameover");
}
}
}

Although practicality beats purity.
Errors should never pass silently.
In the face of ambiguity, refuse the temptation to guess.

toadmancody538
toadmancody538
  • Member since: May. 15, 2008
  • Offline.
Forum Stats
Member
Level 03
Blank Slate
Response to Help With Actionscript 2009-01-24 23:02:00 Reply

TY! I needed that!


I have to tell you something. I have canc-ZOMG A SHINY NEW PENNEY!

Best Webhosting EVER!!!