8 direction problem

Get help using Construct 2

Post » Sun Jul 21, 2013 10:46 am

Hi, I've realised that while using 8-direction movement on my player object, he automatically rotates towards the center of the screen when he moves to the top, bottom , left or right of the screen.
I have the Set angle action towards Mouse.X and Mouse.Y so ideally the player would be constantly looking at the mouse position instead of this unwanted behaviour. Any ideas folks?

Thanks, Paul.
B
5
S
1
Posts: 47
Reputation: 542

Post » Sun Jul 21, 2013 4:05 pm

"he automatically rotates towards the center of the screen" I think something else must be causing this because 8-direction doesn't automatically rotate the object.
B
12
S
5
G
2
Posts: 59
Reputation: 3,859

Post » Wed Jul 24, 2013 6:11 pm

Thanks david, sorry my reply took so long. Internet connection has gone haywire! I'll have a serious look through my event sheet.

Paul
B
5
S
1
Posts: 47
Reputation: 542

Post » Mon Aug 05, 2013 12:10 pm

After a bit of a hiatus on the project, i've went back and had a look. Now i realise i didn't word myself properly. It's not that he automatically rotates towards the center of the screen, it's that as you pass the center of the screen on the X axis, he 'points' towards the middle of the x/y axis, only when you leave off the mouse though, as the player is supposed to rotate towards mouse.x and mouse.y every tick
B
5
S
1
Posts: 47
Reputation: 542


Return to How do I....?

Who is online

Users browsing this forum: beohs, brunopalermo, dop2000, Walessio and 14 guests