How do I move my player

Get help using Construct 2

Post » Wed Aug 10, 2016 7:58 am

grajwan1906 wrote:
The name of the game his "charles" and I want to move the player like in this game.


Then what you need to do is do a condition:

Every Tick > Set Player Position X: Touch.X - Y: Touch.Y
B
19
S
7
Posts: 161
Reputation: 1,751

Post » Wed Aug 10, 2016 9:13 am

The topics have been merged.
No need to multiply topics, keep it to a single one.

Next time, moderation will be more severe.
New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
284
S
109
G
91
Posts: 7,319
Reputation: 87,487

Post » Wed Aug 10, 2016 9:45 am

Vallar wrote:
grajwan1906 wrote:
The name of the game his "charles" and I want to move the player like in this game.


Then what you need to do is do a condition:

Every Tick > Set Player Position X: Touch.X - Y: Touch.Y

But if i do this the player jump tu the position and I want the player move to this positing
B
3
Posts: 12
Reputation: 199

Post » Wed Aug 10, 2016 10:01 am

grajwan1906 wrote:
Vallar wrote:
grajwan1906 wrote:
The name of the game his "charles" and I want to move the player like in this game.


Then what you need to do is do a condition:

Every Tick > Set Player Position X: Touch.X - Y: Touch.Y

But if i do this the player jump tu the position and I want the player move to this positing


What will happen is that the player's position will be where the touch is. So the player must keep his finger on the device at all times to move, otherwise it will stop.

The other method is the pathfinding solution. So when the player touches a certain area, C2 calculates a path that tries to avoid solid objects and the player sprite moves along it. Thing is, I don't think you can draw your own path using that behavior. If you want to draw your own path, you might want to look at:
viewtopic.php?f=147&t=167091&p=1007789&hilit=follow_line#p1007789

or

how-to-make-bullet-follow-the-line-just-drew_t71079?&hilit=rocket+follow+path

Hope that helps.
B
19
S
7
Posts: 161
Reputation: 1,751

Post » Wed Aug 10, 2016 12:23 pm

I success to move but my rival (peer) can't move his player.. the host can move the player but the peer can't.
His player stuck.
What to do?
B
3
Posts: 12
Reputation: 199

Post » Wed Aug 10, 2016 2:16 pm

grajwan1906 wrote:I success to move but my rival (peer) can't move his player.. the host can move the player but the peer can't.
His player stuck.
What to do?


I won't lie to you, I haven't dived deep into multiplayer. But have you made sure that both of you have a copy of the player? That you checked which is host and gave him the ability to move AND the peer too?
B
19
S
7
Posts: 161
Reputation: 1,751

Previous

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 1 guest