pls pls help need help

Get help using Construct 2

Post » Mon Apr 06, 2015 1:43 am

hi need help i want to add an event that does this:when money is lower lower than 20 do not let player build turret i cannot figure out how to make this work pls help

Thanks
B
5
Posts: 34
Reputation: 295

Post » Mon Apr 06, 2015 1:54 am

just add the condition to the buy event System/compare variable>20 (this assumes Money is a Global Variable)
B
42
S
17
G
2
Posts: 850
Reputation: 6,209

Post » Mon Apr 06, 2015 1:43 pm

Hi thanks for the reply. The problem is in my game the turret is made by just clicking anywhere in the walls.Walls=the area you are allowed to place turrets.And your idea didnt work but pls help me solve this I would really appreciate it.

Thanks
B
5
Posts: 34
Reputation: 295

Post » Mon Apr 06, 2015 1:58 pm

If you have a variable called money, adding the condition system compare - money>20 to the build event should work.

So for example:

On walls clicked
system compare : money>20
-- build turret
-- subtract 10 from money
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 » Mon Apr 06, 2015 2:28 pm

but the problem is if i do system compare >20 it wont let med on touch or on click on turret because they are both events
B
5
Posts: 34
Reputation: 295

Post » Mon Apr 06, 2015 2:32 pm

Right click on the event and click add another condition..
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 » Mon Apr 06, 2015 2:34 pm

yes yes yes it worked thank you so much
B
5
Posts: 34
Reputation: 295


Return to How do I....?

Who is online

Users browsing this forum: AkbarAsgharMG, lwgames and 4 guests