Do not rotate

For questions about using Classic.

Post » Sun Feb 14, 2010 4:19 pm

I have a sprite with 8 animations for movement in 8 directions, but when I move it (with the mouse using RTSbehavior or with the keys) my picture will automatically rotate. I just want to stay in the position I made it.

How to do that?
B
2
G
2
Posts: 20
Reputation: 690

Post » Sun Feb 14, 2010 4:21 pm

Set "No rotation" under Angle at the bottom of the Object Properties list?
B
19
S
6
G
6
Posts: 1,101
Reputation: 5,646

Post » Sun Feb 14, 2010 4:27 pm

Thanks. And how do I remove that little "rotation" effect when changing the direction. I tried the "Rotate object" set to now but nothing happens.
B
2
G
2
Posts: 20
Reputation: 690

Post » Sun Feb 14, 2010 4:32 pm

Did you assign the different angles in the animator bar?
For each animation you can have several different angles that are automatically used when the object is at that angle.
Just select the animation, right click, and select add new angle.
Also be sure to set the number of angles in the properties tab, on the left side.
Image Image
B
161
S
48
G
90
Posts: 7,350
Reputation: 66,755

Post » Sun Feb 14, 2010 4:52 pm

i cant make it. i created 8 angles for the "Move" animation.

My first idea (before i discovered the Add Angle) was to set myself what animation/angle to show when the character is moving. The problem is that he still rotates when changing the direction..

here is the .cap file:

http://www.mediafire.com/?ow2onmmwyhy
B
2
G
2
Posts: 20
Reputation: 690

Post » Sun Feb 14, 2010 5:12 pm

You need to re enable rotations, and down at the bottom of that tab set angles to normal, or n angles, then set the number of angles to eight.

Then you need to call the named animations when you want them to change.
[code:s1xmxhzy]+ spriteFootman: is moving
-> spriteFootman: Set animation to "Move"[/code:s1xmxhzy]

[code:s1xmxhzy]+ spriteFootman: [negated] is moving
-> spriteFootman: Set animation to "idle"[/code:s1xmxhzy]

Also when you select the angles animation you can change how fast the animation plays.
Image Image
B
161
S
48
G
90
Posts: 7,350
Reputation: 66,755

Post » Sun Feb 14, 2010 5:14 pm

Done!

Thanks a lot.. :)
B
2
G
2
Posts: 20
Reputation: 690


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 2 guests