How do I Limit mouse distance from player

Get help using Construct 2

Post » Thu Dec 11, 2014 11:13 am

Hey all,

A little problem I hope to get your help with.

I'm trying to limit how far the mouse can be from the player object at any time. I know I could make a sprite, set it to mouse.x/y and then limit the sprite's distance, but I'd rather not as that messes up some other stuff (which i really like and would like to keep)

So, can the original mouse cursor be limited to, say, 250 pixels?

Thanks for reading!
B
7
S
2
Posts: 51
Reputation: 627

Post » Thu Dec 11, 2014 2:15 pm

As far as I know it's not possible to control mouse position. I would use Sprite method and if you use it to click something also check point overlap from that Sprite. Would that fix the other issues?
B
34
S
9
G
3
Posts: 517
Reputation: 5,206


Return to How do I....?

Who is online

Users browsing this forum: JaredX, ksiads, Magistross, Rable and 6 guests