resdesign's Recent Forum Activity

  • Found the solution - using touch in touch and setting to 1 degree so it is not too fast.

  • I have a clock that the students must put at a certain time by clicking up or down arrow images or using the keyboard. The minutes hand is set to rotate in 30 degrees increment that is 5 minutes increments (no times like 12:03 in the questions) and the hours are set in 2.5 degrees increment (as a normal clock).

    I would like the possibility to just press the up or down arrow that represent clockwise and counterclockwise to move the hands without having to click for each rotation and when release to stop where they are.

    How can I accomplish that. I was thinking about something like i++ in javascript but not sure how that works in C2.

  • Thank you for your input. This is a complicated subject. I personally use keyboard shortcut for lots of things but in this instance it seems like the best approach is to use the OS disability keys which I discovered after researching the subject. That way the students can also do drag n' drop with the keyboard acting like a mouse.

  • Never mind. I just needed to stop all sound before restarting the layout.

  • Here is my general set up for educational games. Since there are several games on a page, I have an intro screen with a start button.

    The start button moves out the intro screen and start playing the game music.

    In the game I have a Music button that toggles the music on or off with a click event or a Keyboard (M) event.

    When we use the reset button, though I stop the sounds, it is not killed. so when I start the game again I have the first music playing again and the new music starting to play, overlapping each others.

    Is there a way to actually kill the music on the reset button or should I start the music and set toogle to silent right away so it will always be the same music instance playing?

    Note: I cannot start the music on load otherwise when more than one game is on the page, they would all start playing their own music.

  • Thanks Lamar. I think we may have gotten around with asking kids with disabilities that prevent them from using the mouse to use the accessibility settings on their OS. Do you think that this is adequate? This way they can use their keyboard as a mouse and are able to play drag n drop games as well.

  • So far I have tried using spacebar for selecting the objects according to a variable I call 'selected'.

    Then I am using the arrow keys to navigate to the corresponding droppable which also works.

    I am just not sure this is the 'standard' way to do things if there is a web standard.

  • I have a number of drag n drop educational games that need to have keyboard options instead of drag n drop.

    Is there web standard for that and what keys should I use?

    I am thinking that the student will need to:

    1 - select the object to drag

    2- use arrow key to move the object to the proper area

    3- use a key to select next object to drag

  • OK. I feel very embarrassed. It actually works. The reason I thought it did not work is because I forgot to set the speed of the animation button to 0.

  • Can anyone help on this one.?

    Something strange happens :

    If I start with the mouse event, the button do not switch. However if I start with the T key (which is working) and then proceed to use the mouse it switches. So it seems that the trigger for the mouse event when chosen first is not firing properly.

    Note: the only reason I am doing both events is that specs for education covers all kind of special needs. Most students will use the mouse or tap events while some will use the keyboard.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I still have a problem though the code is definitely better. Basically the button works only on one of the event (the rest works)

    The reason I need both is because some students will use only the keyboard and some students will use touch or mouse. I used mouse in the example but of course I could replace with touch which would also both mouse and tap.

    case 1:

    on start layout set trailOnOff = 1

    on trailONoff = 0/ set animation frame to 0

    else/ set animation frame to 1

    result: keyPress changes the button - mouse does not

    case 2:

    on start layout set trailOnOff = 1

    on trailONoff = 0/ set animation frame to 1

    else/ set animation frame to 0

    result: keyPress does not change the button - mouse does

  • Awesome! It works perfectly that way. Thank you for your input. I am still trying to understand how C2 code works compare to JavaScript.

    Corrected code:

resdesign's avatar

resdesign

Member since 5 Nov, 2015

Twitter
resdesign has 1 followers

Connect with resdesign

Trophy Case

  • 9-Year Club
  • RTFM Read the fabulous manual
  • Email Verified

Progress

11/44
How to earn trophies