matriax's Recent Forum Activity

  • oosyrag Thanks!, now works smooth, but is there anyway to get the math to work like the last image i posted?

    In the image while the pointer is in perpendicular to the object axis not move down/up stay in the same position.

    I tried to change the expresion for curiosity in your .capx , but damn al turns into a mess so fast XDD.

  • I don't know if i found a bug or i'm using it in a way is not correct(I guess the last XD)

    Using Drag&Drop2 and PintTo Imagepoint plugins.

    I have an event called:

    Sprite set width to:

    distance(Scaler_right.DragDrop2.X,Scaler_right.DragDrop2.Y,Scaler_left.X,Scaler_left.Y)

    And event that when the sprite is selected(one time event) > Scaler_right Pinto image point 5 .

    So the idea is set the size of the sprite with the distance between the Scaler_left and the scaler_right. If i move the Scaler_right the sprite is updated no problem.

    But if when is dragging the scaler_right, i move the cursor on Y the distance that is set to the sprite is always the distance of Scaler_left and the mouse.x/y.

    Seems not matter if i pin or set position of the scaler to X point, the distance when is dragging the scaler will be with the mouse.

    I put the events before and after but nothing changes. Seems the pointer event runs more times or have always priority front the PIN or Set position and not set the distance correctly.

    I guess someway to solve the problem is to the distance expresion substract the difference of the Y or something like that but i'm very bad with maths XD.

    Here is the actual program:

    https://dl.dropboxusercontent.com/u/659 ... index.html

    Press the button circle to create one and drag the scaler in the middle-right(the one with a green square) to the right(is locked to move only to the right) and will do the resize correctly.

    But if you stop and go up on Y, the sprite also will be resized. And after some test i found that is because get the distance with the mouse and not with the scaler_right with the pint or with the set position.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • oosyrag Seems this is the way but it's a bit buggy.

    A better image to explain better how/where to move. Or maybe your expresion is correct and i'm doing something wrong.

    i 'm going to play around the last expresion again to see if i can get it.

    So there is no plugin/behavior to lock some object position to an angle?

  • Seems is impossible do it for the pointer so, how can i do it for a sprite?

    Some perfect will be limit the movement of an object to a given angle.

    With drag and drop with Axis in Both i can drag everywhere. And with horizontal or vertical i can move the object in X or Y axis.

    But how i can set a custom angle to drag the object?

    If not with drag&drop what plugin/behaviour i have to use?

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

  • 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.

  • 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 .

  • TiAm with this plugin is possible lock the mouse to move only in a given angle? How can i achieve that?

  • 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'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?

    yes yes, i saw it after the publish post sorry , but the others not. I saw a solution by you using a for with loopindex,etc... to detect no key is down. But well better if they are events to be more easy to use.

    New keyboard & mouse condition like:

    • No key is down.
    • No wheel button down
    • On mouse Wheel button clicked
    • No wheel mouse buttons is pressed
matriax's avatar

matriax

Member since 22 Jun, 2015

Twitter
matriax has 114 followers

Trophy Case

  • 9-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Popular Game One of your games has over 1,000 players
  • Famous Game One of your games has over 10,000 players
  • Viral Game One of your games has over 100,000 players
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

17/44
How to earn trophies