bullet issue

Get help using Construct 2

Post » Sun Dec 01, 2013 4:14 am

hello everyone i have some issues with the bullets in my game i have some enemies that spawn bullets but when i destroy them all the bullets on screen bugs and follow you, btw they are destroyed when they arent on screen,i dont know what i am doing wrong but i would appreciate any help
in this, here is my capx https://dl.dropboxusercontent.com/u/85479859/cosaloca.capx

thx.
B
18
S
2
G
2
Posts: 82
Reputation: 1,737

Post » Sun Dec 01, 2013 4:56 am

what is the issue? please explain in more detail. All I see is a mass of bullets moving across the screen.
B
46
S
16
G
73
Posts: 2,082
Reputation: 43,673

Post » Sun Dec 01, 2013 5:01 am

well in the layout 1 i have all the patterns of the bullets and all works as intended but in the layout 2 the bullets just bugs and as you can see there is a mass of bullets on screen that follows you.

you can check the patterns on the layout 1 by disabling the bullet behavior of the family1 and activating the groups on the event sheet 1
B
18
S
2
G
2
Posts: 82
Reputation: 1,737

Post » Sun Dec 01, 2013 5:07 am

what i mean is that the "bug" are the movement of "in and out" that the bullets do also when there is no enemy on screen there will be bullets following you, if you check the patterns on the layout 1 and compare them to the layout 2 you will know what i mean
B
18
S
2
G
2
Posts: 82
Reputation: 1,737

Post » Sun Dec 01, 2013 5:08 am

I'm not sure everything is working as intended in layout 1. I can't see the enemy spawner objects working at all and in layout 2 there are only enemy spawners. On layout 2 I don't see any patterns or any bullets apart from the player.plinkie2013-12-01 05:10:17
B
46
S
16
G
73
Posts: 2,082
Reputation: 43,673

Post » Sun Dec 01, 2013 5:13 am

you need to wait some seconds, the camera moves slowly
B
18
S
2
G
2
Posts: 82
Reputation: 1,737

Post » Sun Dec 01, 2013 5:23 am

Because the bullet angle of motion is set to move towards the player? The reason that bullets appear when there are no enemies on screen is because you spawn from an enemy spawner when they are out of the player's view.
B
46
S
16
G
73
Posts: 2,082
Reputation: 43,673

Post » Sun Dec 01, 2013 5:31 am

the spawners are destroyed when they spawn an enemy also the enemies are destroyed when they are on the bottom of the layout, and yes the bullet angle is set to move towards the player but it should bug too on the layout 1 and that doesnt happens, i just want the bullets do the patterns like they do on the layout 1
B
18
S
2
G
2
Posts: 82
Reputation: 1,737

Post » Sun Dec 01, 2013 5:49 am

No idea but if you remove the destroy enemy logic in the enemies tab it fixes it. Maybe stop the enemy that spawns bullets every 0.05 seconds from spawning things before it gets destroyed.
B
46
S
16
G
73
Posts: 2,082
Reputation: 43,673

Post » Sun Dec 01, 2013 5:55 am

i will try it thx,

edit: well i need a solution to this because you as a player will be able to kill the enemies and the bug happens when i set the events to destroy them

edit 2: well i fixed it using a counter like the event triggers when there are enemies that can shoot haifisch2013-12-01 06:03:43
B
18
S
2
G
2
Posts: 82
Reputation: 1,737

Next

Return to How do I....?

Who is online

Users browsing this forum: NaSTy, rayolf and 16 guests