Rydogdav's Forum Posts

  • 6 posts
  • I just had a dumb moment. I didn't realize that Keyboard On meant that you could then choose which key you pressed. Thanks for clearing that up for me.

  • Hi, again.

    Currently, I'm trying to get a system working where if you press on the keyboard, the button is typed down on screen and the system can compare that text to a text constant and figure out what to do next.

    I have it down as the following:

    --------------------------------------------------------------------------------------------------------------------------------------------------------------

    Global constant text PRESSN = "N"

    Global constant text typeCheck = 0

    System PRESSN= "Keyboard.StringFromKeyCode" | System typeCheck (greater or equal to) 1 | System Every tick

    Cursor2 Append "N"

    --------------------------------------------------------------------------------------------------------------------------------------------------------------

    (Note: the point of the "typeCheck" variable is to limit when the text will be type on screen and is changed to "1" once you are allowed to type on another event)

    And then from there on another event I would have it check that "Cursor2" would have written down "N" and continue on with the event for "N". My problem is that I don't necessarily understand the keyboard expressions and therefor probably am using it wrong. Please help!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Ok, nevermind. I just started a fresh project and it worked. I don't know what I did on that other project. Sorry!

  • My bad. it was supposed to be your suggestion. I got the same result as always. The cursor just stays there. Doesn't blink or move or anything.

    And that section in parenthesis just explains the name of the font sprite. "cursor" is just the name for it.

  • Cursor (name of the text sprite I'm using for the typing cursor) Set Invisible

    System Wait 1 seconds

    No, that doesn't seem to work. Perhaps it's because it is a sprite font?

    (I'm new, so I don't know to much, so pardon any seemingly dumb questions please)

  • So I'm working on this game that uses 80's style graphics, which means a lot of on screen code. That also means a thick typing cursor that blinks on screen constantly. Unfortunately, I can't get the whole blinking... or moving thing done.

    For the blinking, I have the code in its own event sheet. the code goes:

    System Repeat Infinity times

    Cursor (name of the text sprite I'm using for the typing cursor) Set Invisible

    System Wait 1 seconds

    Cursor Set Visible

    System Wait 1 seconds

    I'm not sure what it is, but I can't seem to get multiple waits working on the same sheet on another event sheet as well (also concerning the "Cursor" sprite font).

    Gods of coding! Help!

  • 6 posts