Hello,
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
playerUnit isTurn
playerUnit isFiring
not playerUnit hasFired
player unit has line of site to enemyUnit.X, enemyUnit.Y
Action
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
isTurn 1
isMoving 0
mouseX 691.830985915493
mouseY 58.59154929577465
hasFired 0
isFiring 1
destAngleX 693.2717046230803
rotateToDestAngle 1
destAngleY 59.32356140793535
destAngleSet 1
Line of site for the playerUnit is 120px