christina's Recent Forum Activity

  • rho thank you for the rapid response!

    Unfortunately I haven't been able to understand vector math too well, and the wikipedia article is way above my league. I just intuitively know I should factor in Z somewhere in my calculations of the Y' coordinate of the ball on the 3D table.

    Maybe I'm not smart enough for this

  • I have mapped the red ball of the bottom top-view 2D table onto the top pseudo-3D table using essentially linear interpolation of the points. The red ball's X position on the 3D table is accurate. The *y* coordinate however is very wrong. See the ball on the 3D table isn't nowhere near the pharaoh's feet.

    From what I gather, I need to take Z into account somehow, but I don't know how.

    If anyone ( R0J0hound ?) has any ideas? I don't need texture mapping, just coordinate mapping.

    Thank you

    Here is my .capx

    https://dl.dropboxusercontent.com/u/280 ... pping.capx

  • Ashley and everyone. Seems keyup isn't possible at the moment, and it's a little buggy, but key down is correctly recognized.

    Here's a plugin by oopwngoo.

  • Great work then, considering the limitation <3

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You're incredible, thank you oopwngoo )

  • This is amazingly awesome oopwngoo!

    Thank you very very much.

    Two things:

    1. Is there no way to see if a left/right key is released?

    It has to be useful as an on/off trigger for left/right pinball flippers.

    2. It appears that it only works for one keypress. It prioritizes left shift. If left shift is being pressed, right shift doesn't register until left shift is released.

    Also, I've made this icon for my own use.

    http://puu.sh/czrsY/2f93aead62.ico

    You may or may not want to include it in your plugin.

    Again, thank you so much <3

  • I'm trying to get the keyboard plugin to detect left/right shift button presses.

    how-do-i-detect-left-shift-right-shift_t106884

    This here says it can be done in Chrome:

    http://stackoverflow.com/questions/2297 ... up-in-chro

    This test here proves that, yes, keycode is 16 for both SHIFT keys, but Javascript *can* handle location via the constant DOM_KEY_LOCATION_ which can be "standard", "left", "right" or "numpad".

    It's a javascript question, if only I knew how to modify the keyboard plugin to add this functionality:

    ( window.onkeydown = function(event)

    {

    var o = 'event = onkeydown, which = ' + event.which + ', location = ';

    switch(event.location)

    {

    case KeyboardEvent.DOM_KEY_LOCATION_STANDARD: o += 'standard'; break;

    case KeyboardEvent.DOM_KEY_LOCATION_NUMPAD: o += 'numpad'; break;

    case KeyboardEvent.DOM_KEY_LOCATION_LEFT: o += 'left'; break;

    case KeyboardEvent.DOM_KEY_LOCATION_RIGHT: o += 'right'; break;

    }

    )

    I've built the game around "A" and "right cursor key" but my testers are complaining about accessibility.

  • Ashley I wish it could be done natively., but I will request a third party plugin. Thank you

  • Ashley any luck? I only care about chrome /node webkit

    Sorry to bug you so much. Do you prefer that I make an official request?

  • Bump this one. Ashley did you have a chance to look at this? Left/Right SHIFT and CTRL would make a world of difference

  • You're incredible, tx ASHLEY.

    Big disclaimer: Chrome apparently only correctly registers DOM_KEY_LOCATION on key down. Key down on left shift would return "Left", but key up on left Shift would return "standard".

  • bump: Ashley any ideas? Adding the code to the Keyboard Plugin should be trivial, no? Should I file a request?

christina's avatar

christina

Member since 21 Aug, 2012

Twitter
christina has 5 followers

Connect with christina

Trophy Case

  • 13-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

17/44
How to earn trophies