Destroy Actor Happening Too Quick
Hi,
I am spawning an actor (when I click another actor), and constraining straight away to mouse X/Y when my mouse is down (no problem here).
No problem here yet:
My actor is spawning at X position 75, under my mouse when I click.
Explanation here:
If I release my mouse off the actor when it is in X position 150 or less, or if I drag it out past X position 150 and then move it back into an X position less than 150, when I release my mouse I want it to destroy.
Problem:
My problem is that because I am spawning it in the X position less than 150, it should not destroy straight away as my mouse is down, but it is.
I think that it is not recognizing that the mouse is down, even though it is.
Can anyone shed any light on this please?
Many thanks,
I am spawning an actor (when I click another actor), and constraining straight away to mouse X/Y when my mouse is down (no problem here).
No problem here yet:
My actor is spawning at X position 75, under my mouse when I click.
Explanation here:
If I release my mouse off the actor when it is in X position 150 or less, or if I drag it out past X position 150 and then move it back into an X position less than 150, when I release my mouse I want it to destroy.
Problem:
My problem is that because I am spawning it in the X position less than 150, it should not destroy straight away as my mouse is down, but it is.
I think that it is not recognizing that the mouse is down, even though it is.
Can anyone shed any light on this please?
Many thanks,
Comments