Ahmed Mokhles's Forum Posts

  • When you create an event for any object, instead of referring to its name you can refer to it as "Self"

    So in your example you want to get the text from a textbox but instead of using your textbox name you use "Self":

    TextBox.Text

    Self.Text

    I hope this helps

    Please ask if you have any question

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thank you so much! Just what I needed!

    Looked confusing at first and took me a little while to understand how it works but eventually I got it thanks to the example you gave.

  • Hello!

    I am currently working on a game where the player sprite moves according to commands that I type into a text box.

    What I could achieve was simple text comparison. For example, if I enter "go" move 50 pixels to the right.

    But what I want is something to analyse different parts of the input command, so for example if I enter "right50" it will recognize "right" and the number after it and move according to what I entered.

    Its simply like in programming languages where you have a command and some stuff after it to explain how the command should be done, like in Python where for example print("hello") "print()" was the command and "hello" was the "stuff" or in C++ cout << "hello" "cout" was the command and " << 'hello' " was the "stuff".

    I hope I explained as much as you need to understand what I mean

    Thank you