Noman Khan's Forum Posts

  • Great! thank you so much dop2000 for your help! you are always first to help.

    Yeah, the velocity making the problem, I will go through the issue that you mentioned.

    I have used both, the platformer and 8 direction behavior because there is need of both in the game for different logics.

    it is very helpful. I am going to try this logic.

  • Thank you so much dop2000, for your response.

    Actually "AnyKey is down -> Simulate Right/Left" is already done.

    I want to implement the velocity logic with these buttons like:

    Horizontal Movement: Acceleration:

    • When moving left or right, the player’s horizontal velocity (currentVelocity) increases based on acceleration until it reaches maxVelocity (either positive for right or negative for left).
    • Direction Change: When switching directions, the player experiences double deceleration briefly to create a responsive feel when turning.
    • The direction property is updated to indicate the direction (-1 for left, 1 for right).

    Deceleration:

    • If no horizontal movement keys are pressed and the player is on the ground, the player decelerates until currentVelocity reaches zero.
    • Deceleration is applied differently based on the current direction and whether the player is moving left or right.

    Jumping:

    Initial Jump:

    • When the jump button is pressed and the player is on the ground, a jump is initiated by setting the player’s vertical velocity to jumpVelocity.
    • jumpStartTime is recorded to limit how long the player can hold the jump button for an extended jump.
    • A jump sound is played when the player initiates a jump.

    Extended Jump:

    • If the jump button is held after leaving the ground, an extra upward force (extraJumpVelocity) is applied for up to maxJumpDuration milliseconds after the jump starts.
    • This only applies when the player is not on the ground and the jump duration has not exceeded maxJumpDuration.
  • Hello Constructors!

    I am using Construct 2!

    The point is that on my target device there is ONLY ONE BUTTON AT TIME! (only LEFT... then UP... then LEFT.. you can hold only one button)

    For my platform (TV with remote control), it is important that I have a control system where I can make the player move, but he keeps moving, so I can jump horizontally.

    The rules are like this.

    Hold Right: x velocity increases to max

    Let go of right: x velocity decreases to 0

    Hold right: x velocity increases

    press up: jump - x velocity stays the same until I press left right/ to change it OR I hit the ground, then it starts decreasing again.

    So basically -

    X velocity goes back to 0 if you are on the ground

    X velocity goes to +MAX if you hold the RIGHT

    x velocity goes to -MAX if you hold LEFT

    I have found a Javascript code as well which has the above logic but I could not implement it in the Construct 2.

    Here is the code: https://docs.google.com/document/d/15Sdv9p3hMugA7W8QQ-Fj7luX_XYaGBAmuMQaWny0lKg/edit?usp=sharing

    Your response in this regard will highly be appreciated.

    Thanks

  • Hello Constructor!

    I have worked in a Taping game in Construct3, and now i want to make a referral system in in the game. First how can i get usernames from Telegram app because my game is in Telegram. After that the referral system which will include user can invite the other users and get some earning in the app. How it could be created?

    Your response will highly be appreciated!

    Thanks

  • Yeah this is exaclty what i was asking for!

    Thank you tarek2 for updating the links.

  • I got it!

    Thank you so much for your help igortyhon

    dop2000 Thanks, it gives me more help

  • Can we make it something like showing in the image below where the player can scroll through the dialogue and then scroll through all of their possible options with a scroll bar on the side

  • Just awesome!

    Thats what i was looking for.

    Thank you so much, I really appreciate it.

  • Hello Constructors,

    I'm trying to make a dialouge box (big text) that has the A Scroll bar (for when the log gets too big, players can use a scroll to browse up and down the dialouge box)

    This post is addressed by tarek2,LukeWolf, but the sample codes are not working.

    Your cooperation in this regard will highly be appreciated. Thanks

  • Hello TinyCrocodile, Your question and then self-answer (haha) helps me alot. Thank you so much, it save my time and my problem is resolved.

  • Alright! i will try to resolve it.

    Thanks for your assistance

  • As always dop2000 sir your quick response is highly appreciated!

    Now i got it that Physics is not compatible with Solid.

    So what would be the possible solution for it?

    I have tried the Wood as Immovable, but it is also not working. The ball still go through the wood. Here is the link of the C3 code: https://drive.google.com/file/d/138HZKqztlhu3ead9uXC1Mcg8x-gVOCkc/view?usp=sharing

    Thank you

  • Hello Constructors,

    I have add the Physics and Solid behavior to the Ball and same behavior to the Wood. But when i play with string, the ball is falling from the wood, even it has solid behavior. How can i resolve this issue?

    Here is the Video Link: https://drive.google.com/file/d/1jkXEa_P9sN7fXDWPQD05ohb2g-QEAryo/view?usp=sharing

    Thanks in Advance!

    Tagged:

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Dear dop2000 Thank you so much for your precious time and reply, your suggestion really assists me with it.

    I would like to know about the progress through which i got succeeded in the search.

    I used JSON and Ajax to post the data, as shown in the image below and the result is also.

    Thanks once again.

  • I got it, I used these but unfortunately, it is still not working.

    Yeah, you are right that it might have a problem with HTTP requests.

    Do you know a complete succecced sample or tutorial of how to send and receive data through JSON from Mongodb?