Is it me or do mouse down events not work?
Posted: Sun May 29, 2011 7:49 pm
Hi all,
This is most probably me making a silly mistake and I have only just started using this tool.
I followed the moon defender tutorial (found here, http://game-editor.com/tutorials/moonde ... l_eng.html) and decided to change the fire button from right ctrl to the LMB.
So I added the Mouse Down Event, registered the left click, added the script editor action and put in the following script.
tempmeter = tempmeter + .12;
if(tempmeter < .95)
{
CreateActor("shot", "shot1", "(none)", "(none)", -35, -15, false);
}
The Key Down Event contains exactly the same lines of script.
The problem is that the key down fires the left mouse button doesn't.
I expect it’s just me being dumb but if you can open my eyes I would really appreciate it.
Thank you in advance,
Mat
This is most probably me making a silly mistake and I have only just started using this tool.
I followed the moon defender tutorial (found here, http://game-editor.com/tutorials/moonde ... l_eng.html) and decided to change the fire button from right ctrl to the LMB.
So I added the Mouse Down Event, registered the left click, added the script editor action and put in the following script.
tempmeter = tempmeter + .12;
if(tempmeter < .95)
{
CreateActor("shot", "shot1", "(none)", "(none)", -35, -15, false);
}
The Key Down Event contains exactly the same lines of script.
The problem is that the key down fires the left mouse button doesn't.
I expect it’s just me being dumb but if you can open my eyes I would really appreciate it.
Thank you in advance,
Mat