Using one button for multiple actions in BGE

Hey everyone, I am trying to use the left mouse button to manipulate multiple objects in BGE. Essentially, on the first click of the left mouse button, I want objectx to appear, and then on the second mouse click, I want the camera to play through its keyed ipo’s for frames 1-51. What is the best way to do this?

Thanks a lot

It’s really easy, here’s a simple example is in the attachments

Click once, a cube is added, click again camera does an animation.

I used properties, so if the action = 0 and there’s a click, then something happens., something different happens if you click and action = 1.

Attachments

action_button_ex.blend (130 KB)

Thanks so much. The .blend file really helped. And you’re right that is really easy haha.