Custom Top-Down movement

For questions about using Classic.

Post » Mon Sep 26, 2011 7:06 pm

have made a pretty simple top-down movement engine. I am kinda new and I thought using the built in behaviors was kinda boring and didn't let me program much so I made this. But I am having some problems with rotations and angles. I succeded with making the character turn smooth as he walks different angles but...I don't speak english so I don't know how to say this but when you hold up and right at the same time He walks up to the corner. What I want is for him to turn that angle when he moves that way.

I am sure there are som pros out there who thinks its easy peasy.

My ProjectTabe2011-09-26 19:06:38
B
1
G
1
Posts: 3
Reputation: 431

Post » Tue Sep 27, 2011 3:03 am

Hey Tabe, I am far from a "pro" but I made a few small adjusts to your .cap

What I did was set events for if the Left or Right arrow keys are down, and then sub-events for if the Down or Up arrows are down. Then, I used the 'Set Angle' event, to control the angle determined by what combination of directions the player was pressing...

Is this what you wanted??the_chosen_byte2011-09-27 03:04:07
B
17
S
3
G
4
Posts: 91
Reputation: 3,929

Post » Tue Sep 27, 2011 3:49 pm

Yaay, thank you so much.

Here, take this cookie *Hands over cookie*, you deserve it. :)Tabe2011-09-27 15:50:32
B
1
G
1
Posts: 3
Reputation: 431


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 5 guests