Bug with mouse position?
guestwho
Member Posts: 4
Ok, so I hae this thing where the player clicks on a icon and it primes their weapon, then the player clicks anywhere else(that's not on the icon) to shoot. The general coding on the icon actor is,(FirstRule) When mouse button is down and mouse position is over actor. --> prime. (SecondRule)When mouse is button down and mouse position is not over actor ---> shoot
However the "mouse position is not over actor" does not work, istead the "mouse position is not over actor" works exactly like "is over actor". Can anyone explain why?
Note that I have already set "All" to those rules and not "Any"
However the "mouse position is not over actor" does not work, istead the "mouse position is not over actor" works exactly like "is over actor". Can anyone explain why?
Note that I have already set "All" to those rules and not "Any"
Answers
Can you give some more info?
Take a screenshot (Press Command-Space and type in 'Grab'. Then click on the first result and press Shift-Command-W, and press anywhere in GameSalad; this will give you an exact screenshot of just GameSalad)
(or press Command-Shift-3)
Or just type out the code in detail, because we can find the problem if we can't see the code. The way you described it, it should work, but we can't find the problem without more info.
It sounds like you are not really too far into the game. If that's true, and you don't mind, give a link to download the file, and then I can help you out quickly.
Hope this helps.