Question

I have created a game where you have to follow the suggested arrow (going from right to left) to control the movement of the character. As you go trace the arrow from right to left, the characters position changes and he rubs his forehead. I wanted it to be very interactive, so you feel like you are controlling the character. As he rub his forehead, I want the "heat meter" to increase, and after it reaches hot, the level is completed. Is this even possible with Actionscript 3? Thank you in advance for letting me know, and if it is, how would I go about setting this up. I am very new to AS3. :/

Was it helpful?

Solution

Use gotoAndStop() to navigate to the head scratching menu using if statements (if(var thinking:Boolean == true) and to the heat meter: if(character.currentFrame == "scratchinghead") { var heatmeter:int ++; }

Then to win: if(heatmeter > 99) { gotoAndStop("win"); }

To check if the mouse is hovering, use MOUSE_ROLL_OVER.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top