Can I get some actionscript 2.0 help?
This is a little complicated, but I’m making a game similar to Hapland(A flash game), and I need a little help. So, I have a bridge on the level, connecting two hills(It connects with the second hill once a lever is pulled), and when you click on a guy, he will order medicine online pull a lever so the bridge expands, and he can walk across it to the other hill. There’s one problem though, when I click the guy, he pulls the lever and the bridge expands and connects to the second hill, but when I click him a second time, he pulls it again, bringing the bridge back. I want it so when I click him a second time, he runs to the other side of the bridge, not contract the bridge. Inside the bridge movieclip, I have two layers, one with the bridge connecting(animated), and the other layer, a frame named "done". I need actionscript that’s something like "if(_root.bridge is on the frame named "done", then_root.main(The guy that pulls the lever) gotoAndPlay(25(Frame where he starts running across bridge))){}" or something. Any suggestions help.

Leave a Reply