How do I align a spawn object ??

Just started using Construct 2? Post your questions here

Post » Fri May 09, 2014 4:22 am

Im having some troubles trying to figure this out. I have a ship firing projectiles and the projectiles upon hitting the ocean will have a water splash.

I set my projectiles to destroy with hitting the ocean tile and spawning a water splash object. But the align of the water splash follows the angle of the projectile.

What do i have to tweak to allow the water splash to correctly align to the ocean tile instead of the angle of the projectile ?

Many thanks !
B
9
S
1
Posts: 31
Reputation: 485

Post » Fri May 09, 2014 12:30 pm

Is the ocean is flat like land then give this condition to splash

Code: Select all
every tick - set splash angle to 270


The splash will aim upwards like in real

hope it helps.
Every Game is a Good Game it's just few people like and few does not! Keep coding people some day you will be a "NOTCH".
B
21
S
6
G
3
Posts: 85
Reputation: 4,607

Post » Sat May 10, 2014 11:34 pm

Thanks alot! Its working now except the angle given is wrong =) Angle to 360 works for me !
B
9
S
1
Posts: 31
Reputation: 485

Post » Sun May 11, 2014 4:01 am

Well I am glad it did good luck for the game @bear13
Every Game is a Good Game it's just few people like and few does not! Keep coding people some day you will be a "NOTCH".
B
21
S
6
G
3
Posts: 85
Reputation: 4,607


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 2 guests