How do I Make bullet appearance still while changing angle

Just started using Construct 2? Post your questions here

Post » Thu Jul 03, 2014 12:33 pm

Hi there. I made a bee creature that flies towards the hero thanks to the bullet behavior. It is created by a beehive every so often when on-screen. The thing is, the bee sprite rotates while changing direction, and i don't want that to happen. Is there an easy way around it?
B
3
Posts: 4
Reputation: 283

Post » Thu Jul 03, 2014 2:29 pm

When you click on your bee object in the projects window or in your layout, you can set options on the left side of your screen.
If you put "Set Angle" to "No" the bee will not change it's angle based on it's direction.
B
6
S
1
Posts: 73
Reputation: 571

Post » Thu Jul 03, 2014 3:38 pm

Now bees just go right, but rotate towards the hero. It's because i made the bee sprite to set angle towards hero's position. Is there a way to set bullet's motion towards a position?
B
3
Posts: 4
Reputation: 283

Post » Thu Jul 03, 2014 11:25 pm

You can use the "Set angle" and "Set angle towards position" actions when clicking on a bullet object while choosing an action.
B
6
S
1
Posts: 73
Reputation: 571

Post » Sat Jul 05, 2014 3:36 pm

At this point the bullet changes direction based on object's angle, and the angle changes towards hero's position. When i put "Set Angle" to "No", bullet doesn't change direction at all. What i want, is to make bullet turn towards hero's position without this workaround

There are "set angle", and "set angle towards" options, and there is "set angle of motion", but i don't see "set angle of motion towards", and it is kinda what i need.
B
3
Posts: 4
Reputation: 283

Post » Sat Jul 05, 2014 6:45 pm

Set angle of motion to angle(self.x, self.y, player.x, player.y).
B
55
S
29
G
19
Posts: 1,520
Reputation: 25,630

Post » Sun Jul 06, 2014 9:25 am

It works now! Thank you so much :)
B
3
Posts: 4
Reputation: 283


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 4 guests