Skip to main content
Participant
March 21, 2013
Answered

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

  • March 21, 2013
  • 1 reply
  • 570 views

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!

This topic has been closed for replies.
Correct answer Ned Murphy

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.

1 reply

Ned Murphy
Legend
March 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.

Participant
March 22, 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.

Ned Murphy
Ned MurphyCorrect answer
Legend
March 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.