I've got a player sprite with a few variable on it, and an action I'd like fire if the user clicks on the enemyUnit. The problem is the left clicks are only registering if I click on the canvas. I'm not sure why this isn't working. Every single condition is met. Can someone tell me why it's not working? I really don't know. I've checked the other actions. I don't see where another action might be firing to mess this up. Any tips.
Thank too. Just frustrated. There's unanswered posts, and not the first thing that's tripped me up, but might be my fault Thanks guys.
My action conditions
on left button clicked on enemyUnit
cursor is over enemyUnit
not playerUnit hasFired
player unit has line of site to enemyUnit.X, enemyUnit.Y
playerUnit set mouseX to Mouse.X
playerUnit set mouseY to Mouse.Y
set destAngleX to enemyUnit.X
set destAngleY to enemyUnit.Y
set destAngleSet to true
set rotateToDestAngle to true
Debug readout on playerUnit
Line of site for the playerUnit is 120px