Ahmed Mokhles's Recent Forum Activity

  • Thank you! You got exactly what I wanted but I don't seem to understand how this works

    If you can explain a bit I would be very thankful

    PS: I think this link works, try it if you need to:

    drive.google.com/open

  • Anytime

  • Hello!

    I want to make some sort of shooter game with mobile support in C3.

    The main player sprite has a bullet behavior and its speed is two X the distance between the joystick sprite and its initial location. The joystick sprite has a drag-drop behavior and when it isn't being dragged, it goes back to its initial location. The player's angle is also calculated by using "angle(x, y, joystick.x, joystick.y)"

    However the user can move the joystick all the way to the top-right which will make the player move way too fast, so i want to know how to stop the joystick sprite from moving more than 128 pixels from its initial location.

    Thanks in advance.

    PS: here is the project if you need to try it out:

    drive.google.com/open

  • 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

  • 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.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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

Ahmed Mokhles's avatar

Ahmed Mokhles

Member since 3 Aug, 2018

None one is following Ahmed Mokhles yet!

Trophy Case

  • 6-Year Club
  • Email Verified

Progress

7/44
How to earn trophies