I have a little-big problem. I tried to create Angry Birds-like game and I get stuck with one problem.
I created variable global('power') that is used to set force for barrel flying from cannon. I use [Key Left Mouse Button is down] for adding 5 to the variable. The i use [On Key Left Mouse Button released] to shoot using [barrel: Set force: global('power') towards mouse.X mouse.Y]. I use Text object to show the current power using [power_variable: Set text].
So, now the problem.
The force applied to barrel sems to be random :/
Text is showing Force: 200 but one time it shoot with ~300 or ~100...
Here's the whole code:
<img src="https://dl.dropbox.com/u/40649602/code.jpg" border="0" />