Make an object that uses sprites to turn instead of angle?

Get help using Construct 2

Post » Thu May 19, 2016 9:00 pm

Hey there!

I want to make a Pokemon-Top-Down-looking Turret using pre-made sprites for each 45 degree angle of it turning - how do I make it so the object stays "static" (in place) while it's Turret behavior points towards it's Target?

Example: (red block is Turret, dark red triangle is Enemy, black ring around Turret is it's Range)

Image
B
7
Posts: 11
Reputation: 283

Post » Thu May 19, 2016 9:13 pm

You'd have to make different animation frames for each step in rotation.
Nothing goes unanswered!
B
24
S
5
G
1
Posts: 434
Reputation: 3,446

Post » Thu May 19, 2016 9:17 pm

I think it would be simpler to ditch turret behaviour altogether in your case, have each facing direction as an animation frame (or separate animation) which you switch depending on the angle calculated between the target's position and the turret's position.
B
15
S
6
Posts: 85
Reputation: 1,195

Post » Thu May 19, 2016 10:35 pm

Image
B
64
S
23
G
7
Posts: 1,481
Reputation: 10,823

Post » Sat May 21, 2016 11:30 am

korbaach wrote:frameAngle.capx


Image


Works perfectly! All of the thanks!!
B
7
Posts: 11
Reputation: 283


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 16 guests