Rotation direction

For questions about using Classic.

Post » Sat Nov 19, 2011 9:14 pm

Hello everyone!
I have some problems with rotating sprite and I hope someone can help me)
To control current direction (left/right) of the weapon I have used a private variable and looks like it worked fine. But when weapon angle is 270 or 90 degrees and you hold down arrow key of opposite direction it rotates counter-clockwise (270) no matter which direction you are facing. How to set up rotating direction from 270 and 90 degrees according to direction you are facing?
Here is my .cap file: http://dl.dropbox.com/u/49819507/Control.cap
Thanks.
Kuklatank2011-11-21 07:10:38
B
3
G
1
Posts: 12
Reputation: 499

Post » Mon Nov 21, 2011 12:20 pm

The problem is in the Sprite2's direction, try this:
http://dl.dropbox.com/u/2721498/2stroke/Construct/cap/platform.cap
B
10
S
6
G
3
Posts: 127
Reputation: 2,481

Post » Mon Nov 21, 2011 2:13 pm

Nope, problem is still there. When you are looking to the right and weapon angle is 270 degrees, press and hold down down arrow key.Kuklatank2011-11-21 20:06:28
B
3
G
1
Posts: 12
Reputation: 499

Post » Mon Nov 21, 2011 2:55 pm

I don't understand..
Pecek's Tutorial works according your rec, or what?
B
7
S
2
G
1
Posts: 193
Reputation: 1,745

Post » Mon Nov 21, 2011 3:04 pm

No, it doesn't.Kuklatank2011-11-21 22:00:53
B
3
G
1
Posts: 12
Reputation: 499

Post » Mon Nov 21, 2011 4:43 pm

Thanks to everyone, looks like i`ve solved this problem.
B
3
G
1
Posts: 12
Reputation: 499


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 8 guests