How do I assign an object type?

Get help using Construct 2

Post » Wed May 20, 2015 12:05 am

I want certain non solid objects to be able to interact with the line of sight.

I have enemies approaching that stop in a line of sight, but I want ones behind them to be able to move.

Thanks!
B
5
Posts: 37
Reputation: 299

Post » Wed May 20, 2015 1:51 am

give your objects an instance variable, then set it to distinguish them from eathother..
B
100
S
33
G
16
Posts: 1,204
Reputation: 16,865

Post » Wed May 20, 2015 1:38 pm

Much appreciated. How do I give them an instance variable? Can't find that out!
B
5
Posts: 37
Reputation: 299

Post » Wed May 20, 2015 1:44 pm

When you select an object inside the editor on the left you find the properties bar..
click add/edit instance variables..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Wed May 20, 2015 2:05 pm

Gotcha, thanks!
Now under obstacles for my LOS it still says custom. How do I set it to the instance variable I just called "Enemy?"

And seriously, thank you for the amazing support. I will be buying the full edition as soon as I am able. You guys are really awesome.
B
5
Posts: 37
Reputation: 299

Post » Wed May 20, 2015 2:17 pm

Why would you want the enemy to obstruct the line of sight?
I would think you wanted the to use the line of sight to see the enemy..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Wed May 20, 2015 2:20 pm

So when any enemy behind another one, is able to move, as the closest selected will freeze, but ones in its "shadow" are free to move.

Image
B
5
Posts: 37
Reputation: 299

Post » Wed May 20, 2015 2:27 pm

Ok, this would not be the way to do this..

If you'd like to do something like this, it might be better to have the nearest player spawn an object which obstructs the sight..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Wed May 20, 2015 2:28 pm

Mind helping me figure out how to do that?
B
5
Posts: 37
Reputation: 299


Return to How do I....?

Who is online

Users browsing this forum: LunaticCat, WesleyDeveloper9 and 2 guests