Player 8 Direction Animation Movement

For questions about using Classic.

Post » Sat May 01, 2010 2:41 pm

Hi all i'm really new to this and have read abit about whats what, but what i wanted to know is, i have a character with 64 frames of animation. 8 Frames of Animation for each of the 8 angles.

I have loaded them into the Animator and named it "Player Walking", then added in Behaviours Custom Movement "Player Walking" but obviously the Player Sprite just runs through all the frames.

What i'm after is that when i click on a point on the screen the sprite goes to that Mouse x,Mouse y position with the correct animation.

Do i have to seperate all my animations so i have a seperate set for each direction,..?

Thankyou for any help

P.S. Thanks to all involved for a really great application, having used GM for a couple of months with nothing but a side scrolling shooter to show for it, then this seem like it has an easier interface to work with.
B
40
S
14
G
11
Posts: 243
Reputation: 9,432

Post » Sat May 01, 2010 3:19 pm

Ok i figured out that each animation has it's own angles, So i ahve put the 8 frames of animation in each of it's own angle. So now i think i need to get the mouse x, y, when the left button is clicked. then make the correct anim play for that angle...

I also have when left is clicked set angle to mouse x, mouse y But there's that little error when inbetween the 8 positions which is a problem as the sprite looks tilted. I don't want to do anims for all 360 degrees.
B
40
S
14
G
11
Posts: 243
Reputation: 9,432

Post » Sat May 01, 2010 5:14 pm

To avoid the sprite being tilted in between the animation angles. Change the Sprite's property "Rotation" from "Normal" to "N angles", and be sure the property "Rotations Count" is 8.
B
79
S
24
G
54
Posts: 4,755
Reputation: 40,773

Post » Sat May 01, 2010 9:32 pm

Thankyou that corrected it, but how do i make it goto mouse x, mouse y with the animation...?

At the moment it just jumps straight to the mouse x, y.

When i select New Action i have Tabs:- Player1:Player Walking
In Player Walking (Which holds all my angles and animations) i have
Acceleration & Speed
Angle of Motion
Angle of Motion Rotaion Speed
Collision
Distance
Friction
Movement
Overplap

But none of them seem to allow me to walk with anims to the mouse x,y
B
40
S
14
G
11
Posts: 243
Reputation: 9,432

Post » Sat May 01, 2010 9:54 pm

Ok i added RTS movement and it now goes to the mouse, just need to figure animation out now. :)

Also now added Event Is Moving :- Player1: Set Animation to "Player Walking"
But this don't work....
B
40
S
14
G
11
Posts: 243
Reputation: 9,432

Post » Sat May 01, 2010 10:22 pm

It's ok i got it figured added an arrived at waypoint Event. ~:)
B
40
S
14
G
11
Posts: 243
Reputation: 9,432


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 5 guests