How do I set the pointer to move only at given angle?

0 favourites
  • 7 posts
From the Asset Store
10 Beautiful Pokemon-like Building Pixel Art Sprite Sets
  • I'm doing a 2D tool.

    I can rotate and resize an object but i need that when the mouse drags a one dimension scaler(horizontal or vertical) lock the mouse to move only in the RED line angle to set the size.

    Actually works fine the size because i blocked the rest of the points. But you can move the mouse everywhere when you get some point to resize, and for the one dimensionscaler i want to lock the mose in the angle to be resized.

    Is possible? how?

    Or At least move the sprite only at given angle?

  • I wonder if you could make this work with Rex's boundary plugin.

    You might have to lock the mouse onto a object, and use boundary on the object.

    Take a look at the plugin and see if you can figure it out, if not I can try to throw something together as an example.

    Justin

    PS: I'd love to see what progress on your tool You've made.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • I wonder if you could make this work with Rex's boundary plugin.

    You might have to lock the mouse onto a object, and use boundary on the object.

    Take a look at the plugin and see if you can figure it out, if not I can try to throw something together as an example.

    Justin

    PS: I'd love to see what progress on your tool You've made.

    antares330 Thanks for the reply i'm goint to try that

    THis is the tool at the moment, nothing big actually:

    https://dl.dropboxusercontent.com/u/659 ... right.capx

    You can resize(WIP), rotate, change opacity, change the Z-Index order and import/export the project composition. Also you can import external images that will be saved in Base64.

    Is focused to work with sprites, no draws or pixels. Still is all a bit mess, will see <img src="{SMILIES_PATH}/icon_razz.gif" alt=":P" title="Razz">

  • I found a Mouse Lock Plugin:

    I asked the author if this will be possible. I not understand very well the plugin and some things i tested the app crashed so maybe with last updates is not compatible :S .

  • It's a great start on a tool

    It gives me hope that I'm not the only one that has thought it would be possible to make tools with C2.

  • It's a great start on a tool

    It gives me hope that I'm not the only one that has thought it would be possible to make tools with C2.

    Thanks! Starts as a personal program for my needs but i will share in case can be useful to other people.

    --------

    I searched more in the forums and plugins/behaviours but i was not able to find nothing to do that , maybe i will have to ask somebody to make a plugin for it.

  • At least, any idea that how to lock the sprite movment to an angle? To move it by the RED Line? (the sprite angle)

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)