First steps in Construct - Retrieving N Angles

For questions about using Classic.

Post » Fri Apr 11, 2008 9:31 am

Yep, the facing only in 4 directions works, but if you try to get the angle you get anything between 0-360 depending on the angle of the RTS movement.
B
1
G
4
Posts: 5
Reputation: 1,035

Post » Fri Apr 11, 2008 9:51 am

Doh! Okay, I get what you're saying now. I was finally able to get on Construct just now and test it out. I see now that N Angle is only a visual trick, the actual angle is still a full range of degrees.

That's really weird and counter-intuitive. I totally didn't expect it to behave that way, that's where I got confused. It seems to me that if you're locking the rotation to a set number of steps, it should only return those step values.

It's also strange to see your sprite display at exactly 180 degrees, but be told that it's really 185.9408654 degrees. It's like the angle of motion is tied into the angle, and it doesn't need to be.

Edit:
Just checked out Jeswen's .cap. Pretty clever solution. Just an fyi though, you don't need to have an Always event on every line, it works just as well this way:

Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971

Post » Fri Apr 11, 2008 4:56 pm

Bad habit from MMF2 when I encountered things that needed "always" hehe. I didn't even bother to see if they worked without it!
B
2
S
2
G
5
Posts: 391
Reputation: 2,432

Post » Fri Apr 11, 2008 5:00 pm

[quote="Jeswen":358un1io]Bad habit from MMF2 when I encountered things that needed "always" hehe. I didn't even bother to see if they worked without it![/quote:358un1io]
Yeah... slowing down the applications >:( , microsoft have the same strategy :P.
B
4
S
2
G
4
Posts: 719
Reputation: 2,938

Previous

Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 2 guests