How do I move the character through clicks on the screen and

0 favourites
  • 5 posts
From the Asset Store
Click! Click! 136 click sounds for your video games or media projects
  • I have a new problem, I searched around the forum but found nothing about it. I'm trying to learn how to make a game with mechanics similar to video (99 problems:

    ) (In my imagination it was easy, but in practice not so much LOL). I tried all night, but did not have much progress, so I had to come ask for help again <img src="{SMILIES_PATH}/icon_e_sad.gif" alt=":(" title="Sad">. (Sorry for grammar, i use google translator, I hope you understand what I mean).

    Could take a look at the project and say what I'm missing or direct me to a tutorial? Thank you very much in advance.

    Project:

    https://drive.google.com/file/d/0B-StK2 ... sp=sharing

    I just wanted to learn to do the mechanics jump by clicking on the screen using the physics of the game to go to get from one side to the other while being pulled down by gravity or something. This has been very hard for me, I could not find anything.

    Thank you for your attention, and thank you in advance.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You should be able to apply a force on any physics object in the direction of the mouse cursor or touch location.

    [Click mouse]

    --- Player.Physics apply force 1000 towards Mouse.X Mouse.Y

    Then you can have gravity naturally applied with the physics behaviour, as well as collision with other surfaces/objects.

    *EDIT*

    EXAMPLE

    ~Sol

  • First, thank you for your attention.

    The example that sent me is very good, is 70% of what I needed, I had thought that way, but it was not what I needed. I tried to draw what I need, I hope you understand, sorry for the inconvenience, I know I will not make my game for me, but I really like to learn to do this, but I did not find it in the forum or youtube.

  • That will be a little more tricky... you would need to have some kind of state machine to force the physics vector to a specific point on the level - then have the mouse click add force/impulse to that position. Once the player reaches this position, state machine changes destination to the next point, and so on.

    It will be a tricky experiment!

    ~Sol

  • I could do what I wanted, thank you for trying to help, soon will send an example of how to help if someone comes one day with the same question. Hugs.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)