NN81's Forum Posts

  • Controllo mouse pointer from keyboard or trigger a 8dir sprite with mouse movement

  • I know you said it was not what you wanted, but I think it's easier to simply hide the real cursor and use a fake cursor which can be controlled any way you like. Then just figure out how to bypass your problem with 8 dir. movement. Shouldn't be that hard.

    well, if u know a way to trigger 8dir movement of a sprite WITH mouse movement please let me know, NO set position. TRIGGER 8DIR simulate control with mouse movements.

  • ok, but i need move the cursor not lock

  • > Because with 8dir sprite go back automatically at mouse cursor point when i tale the control from keys to mouse

    >

    Yes. Didn't knew it is a problem heh. Why is it a problem?

    This is a problem in my project.

  • Nwjs can bypass most of the webpage limits. In theory at least. I'm haven't been interested enough to get pass the process to do such a thing though.

    Understood. I think give a try with electron too..

  • Because with 8dir sprite go back automatically at mouse cursor point when i tale the control from keys to mouse

  • The mouse behavior doesn't have that ability, it's not really something webpages allow.

    If you use nwjs you could look at its plugin for an action to do it. I haven't looked.

    There is also a third party plugin called mouse lock that may be of use to you. You should be able to find it in the third party addons list.

    Barring those the only other avenue for a solution is using nwjs and finding a way to make access the mouse position there with either JavaScript or some nwjs specific plugin. It's not really a quick solution at all and would require research to do.

    Thanks for the answer, I had already tried that plugin in the illusion that it could help me, but I do not think it serves anything to move the pointer ..

    These actions are available. Do you say they could serve me something?

    Something for nw.js ... but if the mouse is unmovable from browser scripts because it should be different on nw.js? Is not a stand-alone version of chromium?

  • There is only one gamepad API in web browsers. Anyways it's probably something to make a bug report for since Ashely is probably the expert on how it works and has the best chance of finding a fix.

    I don't have a controller so I have no interest. Maybe some revelation could be found by comparing the code on that site and the gamepad plugin but that could take time. But so would taking the code on that site and making a c2 plugin with it.

    As always, thank you infinite to answer.

    Certain errors, incompatibility issues are expressly stated in the manual, so I do not complain. What I just do not understand is because that site works and C2 does not ..

    NB I have obviously tried the site from chromium60, and the game from C2 with nw.js version 0.24 (chromium60)

    Ashley you can catch this code and make a better gamepad plugin for C2?

  • As mentioned in the other topic, there is only one gamepad html5 API provided by browsers. Likely the c3 plugin uses the same code as the c2 one. If there are compatibility issues with a controller a bug report is probably the best way to improve it.

    ok, i was hoping that maybe with the new version some api's / plugins had been revisited but I'm realizing that C3 is dragging all C2 limitations in this sense

  • hi guys,

    is it possible to control mouse cursor from keyboard?

    I need this feature urgently...

    thanks in advance to anyone who reply..

    NB im not intersetead to make a sprite pointer similar and move it with a behavior, i NEED to take the control of the true cursor, but from keyboard instead of mouse.

    No one who can help me?

  • Hello everyone,

    I would like to ask which API's use construct2 for the default Gamepad Plugin and if is possible to change them with those used here: http://html5gamepad.com/

    With the Construct2 plugin, in fact, on my gamepad D-PAD and RIGHTSTICK does not work, and left/right triggers works inverted.. But testing my controller on that site everything works perfectly..

    how can explain this?? maybe the C2 gamepad plugins API's are outdated or what else?

    No one who can help? <img src="{SMILIES_PATH}/icon_cry.gif" alt=":cry:" title="Crying or Very Sad">

  • hi,

    i need to know if the C3 gampead plugin api's are the same used for C2, or i f they are updated with more compatibility

  • hi guys,

    is it possible to control mouse cursor from keyboard?

    I need this feature urgently...

    thanks in advance to anyone who reply..

    NB im not intersetead to make a sprite pointer similar and move it with a behavior, i NEED to take the control of the true cursor, but from keyboard instead of mouse.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hello everyone,

    I would like to ask which API's use construct2 for the default Gamepad Plugin and if is possible to change them with those used here: http://html5gamepad.com/

    With the Construct2 plugin, in fact, on my gamepad D-PAD and RIGHTSTICK does not work, and left/right triggers works inverted.. But testing my controller on that site everything works perfectly..

    how can explain this?? maybe the C2 gamepad plugins API's are outdated or what else?

  • I don't really have a simpler way per say. I actually don't use the customMovement's push out. Here is the push out/solid replacement I've come up with that works much better:

    how-do-i-make-the-8-direction-behavior-slide-against-wal_p904925?#p904925

    There are a few variations and although the logic is complex it should be usable by just copying it over.

    They don't touch the speed of the object but here's a way to just measure how fast the player is moving and use that for seeing when it's stopped:

    https://www.dropbox.com/s/fuly7efud7rvd ... .capx?dl=1

    Admirable ... you are undoubtedly a pro!!

    Yours that is a job up. Works perfectly, it ALSO PASSED the test of 1/2 pixel space bug that affect the "normal" 8dir collision behavior ( player-box-collision-issue_t192298 )!!!

    Thanks a billion and so many compliments really..

    Just posting in here to remind everyone please to keep things civil - there is no need for personal attacks. Thank you everyone!

    sorry sir <img src="{SMILIES_PATH}/icon_rolleyes.gif" alt=":roll:" title="Rolling Eyes">