Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

I was wondering if anyone might be able to help me debug my game.

New Here ,
Mar 21, 2013 Mar 21, 2013

I'm currently using flash CS6 and Actionscript 2.0 t create a point and click game.... I'm a little stuck on a button that won't really work for what I want it to. I'd be happy to e-mail it to anyone willing to help. Thanks a whole heck of a lot in advance!

TOPICS
ActionScript
532
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Mar 22, 2013 Mar 22, 2013

There is nothing wrong with that code although you might want to use onRelease insread of onPress.

Place a trace() function call on the function to see if the function is being called.

Translate
LEGEND ,
Mar 21, 2013 Mar 21, 2013

Show the code for the problemed button and explain what it should do, what it does that it shouldn't, and its environment.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 21, 2013 Mar 21, 2013

Basically, I have a seperate layer for buttons, actions, backgrounds, and effects.

The button, optimally, would advance the player to the next environment (frames on the timeline.) The code I used to target it is as follows:

LookUp.onPress = function(){

     gotoAndPlay(42)

}

I have a few other buttons that work using the code I outlined, just different variables.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Mar 22, 2013 Mar 22, 2013
LATEST

There is nothing wrong with that code although you might want to use onRelease insread of onPress.

Place a trace() function call on the function to see if the function is being called.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines