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

Get help using Construct 2

Post » Fri Aug 12, 2016 10:03 am

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: https://www.youtube.com/watch?v=RIpo1Vr43EM) (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 :(. (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.
B
8
S
1
G
3
Posts: 17
Reputation: 1,931

Post » Fri Aug 12, 2016 12:57 pm

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
Tired of crappy file hosts that are crappy? Get DROPBOX - https://db.tt/uwjysXJF
Moderator
B
81
S
34
G
40
Posts: 3,032
Reputation: 30,424

Post » Fri Aug 12, 2016 10:27 pm

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.

Image
B
8
S
1
G
3
Posts: 17
Reputation: 1,931

Post » Sat Aug 13, 2016 3:28 am

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
Tired of crappy file hosts that are crappy? Get DROPBOX - https://db.tt/uwjysXJF
Moderator
B
81
S
34
G
40
Posts: 3,032
Reputation: 30,424

Post » Sat Aug 13, 2016 7:55 am

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.
B
8
S
1
G
3
Posts: 17
Reputation: 1,931


Return to How do I....?

Who is online

Users browsing this forum: Sparkz and 2 guests