I have a problem with Bullet Behavior.

Get help using Construct 2

Post » Thu Mar 27, 2014 7:13 pm

Hi guys!

I'm doing a play top-down space shoot and my enemy and moved up and down through the behavior and the same bullet also shoots the bullet with projetios behavior. Sometimes when the enemy shoots and soon after launched and destroyed the missile changes its trajectory. In my case the enemies are shooting with several different points, 90 degrees, 75 degrees and 105 degrees.

Anyone have any idea why projetios change its trajectory after being thrown?

grateful.


*Sry bad english
B
28
S
2
G
3
Posts: 20
Reputation: 3,535

Post » Thu Mar 27, 2014 7:34 pm

We would need to see the logic, either a .capx or a screenshot of the events.
B
49
S
12
G
10
Posts: 1,833
Reputation: 14,603

Post » Thu Mar 27, 2014 7:36 pm

My initial assumption is your logic just says:

When EventA happens, set bullet angle to whatever

You probably need to nest that as a subevent after the bullet creation event so that it only happens to the current bullet being spawned and not to all bullets on the screen...
B
49
S
12
G
10
Posts: 1,833
Reputation: 14,603

Post » Fri Mar 28, 2014 2:27 pm

Thanks for the help. Looking at the code could solve the problem by count a number to the object instance and applying shoot routine for each.
B
28
S
2
G
3
Posts: 20
Reputation: 3,535


Return to How do I....?

Who is online

Users browsing this forum: Baidu [Spider] and 8 guests