Sprite angles

For questions about using Classic.

Post » Mon Sep 28, 2009 8:05 pm

I'm trying to get my sprite to change angle when it comes in contact with a slope. However, I have been having problems with the animation angle. It looks fine going down a slope. The problem occurs when going up a slope. The sprite appears to move backwards at an angle. I've looked into Deadeyes platform school tutorial but I'm still having trouble.

I've posted the .cap for you to look at

[url:3timhstp]http://dl.getdropbox.com/u/2161142/test.cap[/url:3timhstp]

If you could let me know where I'm going wrong it will be much appreciated.

Thanks in advance.
B
1
G
3
Posts: 4
Reputation: 833

Post » Mon Sep 28, 2009 10:51 pm

Hi.

Here's a fixed cap.

http://dl.getdropbox.com/u/1646976/test ... tforms.cap

When in contact with the slopes you where checking the angle of the "player" objects angle, but when using the controls you set the "sprite" object angle to 0 or 180. So the angle was always returning as zero.

Not very well explained but the cap should help.
B
46
S
23
G
7
Posts: 459
Reputation: 6,763

Post » Tue Sep 29, 2009 6:06 pm

Absolutely spot on. I see where i was going wrong now.

Thanks for the quick response. :D

I owe you one. :wink:
B
1
G
3
Posts: 4
Reputation: 833


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 5 guests