Kingdom Rush Style controls

0 favourites
  • 3 posts
From the Asset Store
Supports keyboard, mouse and gamepads. Supports several gamepads at once.
  • 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.<img src="smileys/smiley19.gif" border="0" align="middle" />

    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.

    Any help will be greatly appreciated<img src="smileys/smiley4.gif" border="0" align="middle" />

    Thanks a lot.

  • 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.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • 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 <img src="smileys/smiley4.gif" border="0" align="middle" />

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)