How do I get turret to work on another solid object

Get help using Construct 2

Post » Fri Dec 05, 2014 11:10 am

Hi,

I have created a few sprites using containers where I have a base and a turret on top. Now this works great and the turret has LOS enabled etc and follows the player around as per settings given. I have another image (A Tower image which sits on the ground layer) and when I place the turret on top it works fine and it looks great. However when I change the tower image which is below the turret, the turret stops moving.

I think I know what the problem is. So the turret is now inside the tower object which has the solid setting on so the turret can no longer see the player as it's stuck in a solid state, but I do not want to disable the solid state on the tower image else the play will just go straight through. I have tested this by placing the turret on the corner of the tower, just outside the edge and it fires, bring it just in and it stops.

Can I have my cake and eat it too? Is it possible to have the turret sitting in the middle of a solid object and still work?

Losing Hair......

Thank you for any help.... I have included the 3 scenarios below as the example. I would provide capx but it's about 33mb at the moment.

solid_enabled_on_tower_turret_outside_tower_working_okay
scirra_outside_tower_solid_on.jpg


solid_disabled_on_tower_turret_on_tower_and_firing_player_walking_through_walls
scirra_solid_off_turret_firing_walking_through_walls.jpg


solid_enabled_on_tower_turret_dead_player_cannot_walkthrough_walls
scirra_solid_on_turret_dead_cannot_walkthrough_walls.jpg
You do not have the required permissions to view the files attached to this post.
B
6
S
1
Posts: 38
Reputation: 417

Post » Fri Dec 05, 2014 12:04 pm

Okay figured it out. I just set Custom to obstacles in the LOS Behaviour. Hey, it might help someone anyway... :)
B
6
S
1
Posts: 38
Reputation: 417


Return to How do I....?

Who is online

Users browsing this forum: 99Instances2Go, Allardje, R0J0hound, Rudi55, sublimate, Vinterstille and 1 guest