How do I make a exhaust straight for each rocket that spawn?

Get help using Construct 2

Post » Wed Dec 30, 2015 7:57 am

I have a game where there are a few rockets and each rocket has its own exhaust. When the rocket spawns, so does the exhaust and it's pinned to the back of the rocket. At the beginning, for the first rocket that the game starts with, the exhaust is aligned with the rocket's angle, but when the player becomes another rocket, the exhaust for the any other rocket for this matter is not aligned and the result is the image below. With the rocket facing a awkward angle and not straight away from the rocket.

Image

The rocket is facing West and the exhaust is going SouthEast..... How do I fix this? I already tried:

Exhaust > On Created> Set Angle>Rocket.angle but that didn't do anything to fix the problem.....
Risk Rocket now available on Google Play
Image
B
35
S
15
G
6
Posts: 337
Reputation: 6,275

Post » Wed Dec 30, 2015 8:04 am

What is your "exhaust" ? Is it a particle emitter ? A sprite ?
How/when is the angle for your rocket set ?

Is the Exhaust a container object ? If not then Rocket.angle will always refer to the first instance created, and so its angle will be the one taken into account.

Consider posting your capx, this will make it easier to investigate and correct your issue.
New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
278
S
104
G
86
Posts: 7,313
Reputation: 84,306

Post » Wed Dec 30, 2015 9:28 pm

Well I got it to work within my game. After completing a test capx, I made containers for the rocket and exhaust and basically followed what I made: https://www.dropbox.com/s/593lyg9mir091 ... .capx?dl=0
Risk Rocket now available on Google Play
Image
B
35
S
15
G
6
Posts: 337
Reputation: 6,275


Return to How do I....?

Who is online

Users browsing this forum: Diginampl and 1 guest