[solved]What am I doing wrong? Guide Path

Get help using Construct 2

Post » Sun Oct 29, 2017 6:50 am

I have setup a guide path for an enemy ship to follow on spawn. Hits the first guide and goes up, second guide goes left and third guide goes down. Hitting the guides works just fine, but the direction the ship is facing does not work going up or down. It enters the layout facing the right direction and is facing the right direction when the ship hits the second guide point moving it to the right. Any suggestions on what I am doing wrong to get the ship to face up on hitting the first guide and face down hitting the third guide point?

I have tried rotating the enemy ship to different points in the animation as well but the up and down does not change no matter what rotation position i put it to in the frame.

I have setup animation frames for each direction by rotating the image clockwise for each direction.

Image

This is the event sheet section

Image

This is the layout

Image
Last edited by rbailey83 on Sat Dec 23, 2017 11:12 am, edited 1 time in total.
B
17
S
5
Posts: 73
Reputation: 1,263

Post » Sun Oct 29, 2017 7:04 am

You don't need animation frames for different angles. Just keep one frame with the ship facing to the right.

Then use Enemy1->Set Angle action to rotate the ship to the same angle as your Bullet.AngleOfMotion

Or you can set "Set Angle=Yes" in Bullet behavior properties and it will fly in the direction of the sprite, i.e. you will only need to change sprite angle. Bullet angle of motion will be changed automatically.
Image

Did I help to fix a problem in your game? You can buy me a cup of coffee :) If you'd like to hire me, please see this post
B
19
S
9
G
158
Posts: 2,375
Reputation: 84,377

Post » Sun Oct 29, 2017 7:24 am

dop2000 wrote:You don't need animation frames for different angles. Just keep one frame with the ship facing to the right.

Then use Enemy1->Set Angle action to rotate the ship to the same angle as your Bullet.AngleOfMotion

Or you can set "Set Angle=Yes" in Bullet behavior properties and it will fly in the direction of the sprite, i.e. you will only need to change sprite angle. Bullet angle of motion will be changed automatically.


@dop2000 awesome thank you so much! knew it had to be something simple, guess i was over complicating it. Used the second method and worked like a charm, which of course i'm sure you knew it would
B
17
S
5
Posts: 73
Reputation: 1,263


Return to How do I....?

Who is online

Users browsing this forum: facecrime and 10 guests