Thumbstick

Get help using Construct 2

Post » Tue Jul 31, 2012 2:56 am

I followed http://www.scirra.com/forum/how-to-make-a-thumbstickmobile_topic46992_post294264.html#294264 to make a virtual joystick but the problem is the sprite for my game is not turning in the right direction. How can I fix?
Link http://dl.dropbox.com/u/61777587/test.capx
B
4
Posts: 15
Reputation: 355

Post » Tue Jul 31, 2012 3:32 am

Please help I REALLY need it
B
4
Posts: 15
Reputation: 355

Post » Tue Jul 31, 2012 12:13 pm

Your sprite image needs to point towards the objects default angle (to the right). Go into the image-edtior and rotate your sprite until it points to the right.
B
27
S
8
G
8
Posts: 903
Reputation: 8,452

Post » Tue Jul 31, 2012 2:54 pm

Thanks !
I just have 1 question why do you have to make it like that?
B
4
Posts: 15
Reputation: 355

Post » Tue Jul 31, 2012 3:48 pm

An object's default angle (0 degrees) is to the right. When you use behaviours or events to move the object it will usually move along it's angle. If your sprite doesn't point in the same direction as the angle (to the right), it will move sideways.

The blue line is the angle of the object:


If it's set up like in image 1, the object would move along the blue line (sideways). You want it to be set up like image 2.Nimtrix2012-07-31 15:48:27
B
27
S
8
G
8
Posts: 903
Reputation: 8,452

Post » Tue Jul 31, 2012 5:26 pm

Thanks for the explanation!
B
4
Posts: 15
Reputation: 355


Return to How do I....?

Who is online

Users browsing this forum: Magistross, mallorcaredes, PavleNikolic and 26 guests