Kingdom Rush Style controls

Get help using Construct 2

Post » Sun May 05, 2013 8:36 pm

Hi Guys,

I building a Tower Defense game and I'd like it to have a control scheme similar to Kingdom Rush but I'm unable to figure out how to do it.

For those not familiar with Kingdom Rush, the behavior I'm looking for is this one.

1-The player click on a predefined building spot on the map
2-A build menu appear over the predefined building spot.
3-By clicking on one of the option of the build menu. A Tower is built over the building spot.

I'm able to do part 1 and 2, but I can't find the way to make part 3 works.

I tried to store the UID of the buidling spot in a variable and use it to set where the tower is built but to no avail. The CAPX file is here.
http://www.heroes-cards.com/Kingdom_rush_controls.capx

Any help will be greatly appreciated
Thanks a lot.
B
16
S
4
G
4
Posts: 9
Reputation: 3,660

Post » Sun May 05, 2013 8:42 pm

Not sure why you were using UID - what you want is the position of the burger object. Store that as two variables upon clicking on the burger, and then use those variables as the X and Y spawn location of your towers.

Updated capx.
B
56
S
15
G
10
Posts: 910
Reputation: 11,942

Post » Mon May 06, 2013 3:55 am

Upon seeing your updated CAPX, I'm not sur either why I was trying to use the UID. I still have a lot to learn.

Thanks a lot GeometriX
B
16
S
4
G
4
Posts: 9
Reputation: 3,660


Return to How do I....?

Who is online

Users browsing this forum: mercuryus, mystazsea and 18 guests