How do i move the player without change his angle rotation?

Get help using Construct 2

Post » Tue Jan 17, 2017 4:03 am

Hi,
I am making game for mobile platform.
I would like to use the touch joystick for moving the player, so when I move him it's need to be change the player position instead of his angle.

I am using now :

Is in touch - Empty object-----angle(gamepad.X,gamepad.Y,joystick.X,joystick.Y)

and pin the player with empty object (position only)

use also the bullet and BoundToLayout and behaviors.

so its not moving properly.

please let me know if any other trick for this.
please help me the to solve the this.
B
38
S
9
G
1
Posts: 74
Reputation: 2,660

Post » Tue Jan 17, 2017 8:56 am

Most movement behaviors do have a "Set angle" property that you can set to no.
The bullet behavior has a "Set Angle of motion" action which determines the angle it is moving towards, and should be the angle you set, not the actual angle of the object that contains the behavior.

At last, you may want to look at the how do I FAQ to the various items if some movement example is not what you are looking to do exactly.
New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
289
S
112
G
94
Posts: 7,333
Reputation: 69,293

Post » Tue Jan 17, 2017 10:45 am

Thanks for the reply. I will try this and let you know.
B
38
S
9
G
1
Posts: 74
Reputation: 2,660

Post » Tue Jan 24, 2017 7:01 pm

@Kyatric
I have tried as you suggested but not getting as I expected result, may be some were I am wrong, I have done by another way, so now when I release the joystick plane is moving but I want the plane move with joystick.
please help me to solve this issue.
please find the "capx" on below path.

https://www.dropbox.com/s/42a2x1iyezob6 ... .capx?dl=0

Thanks
B
38
S
9
G
1
Posts: 74
Reputation: 2,660

Post » Fri Jan 27, 2017 6:11 pm

@Kyatric
Have you checked the capx file?
B
38
S
9
G
1
Posts: 74
Reputation: 2,660

Post » Fri Jan 27, 2017 6:29 pm

radhaw wrote:@Kyatric
Have you checked the capx file?


Fixed your capx for you.
Here you go, mate: https://www.dropbox.com/s/q1jt99q4ctjcd ... .capx?dl=0
Image Image Image
B
29
S
11
G
27
Posts: 730
Reputation: 17,002

Post » Sat Jan 28, 2017 5:00 am

Big Thank you, I am really happy ! now I will move ahead.
once again.
Thanks a lot... Friend :D
B
38
S
9
G
1
Posts: 74
Reputation: 2,660


Return to How do I....?

Who is online

Users browsing this forum: ajcoppersmith, blue visionary and 4 guests