How do I create a menu from a point on the map

0 favourites
  • 6 posts
From the Asset Store
Connect the dots in the correct order and draw happy animals!
  • I'm creating a tower defense game and am trying to spawn a tower select menu when the user touches a certain point on the map. After they touch the point, a menu spawns with all of the tower options that can also be touched to place that tower at that point. Does this functionality exist in Construct? I'm having trouble creating the logic to allow such a thing. I'm trying to create something similar to the below gif...

  • Yes, and it's called the event sheet

    Hint: On Touched Tower Object - Set position to Tower.x and Tower.y

  • [quote:hvfrabbq]On Touched Tower Object - Set position to Tower.x and Tower.y

    Using the image above as reference

    I'm experiencing the same problem with a game I'm working on. The tough part is figuring out how to click on different places on the popup menu.

    Can you have 1 sprite with the different buttons on it, and build a different tower depending on which one they click on, or do you have to spawn 4 objects relative to the towers location that have sprites that line up to appear like it's 1 object?

  • Yes, and it's called the event sheet

    Hint: On Touched Tower Object - Set position to Tower.x and Tower.y

    That would allow me to open a menu, sure, but I need to be able to select a tower from the menu and place that tower on that point. I have the exact same question that mikesnorth has.

  • Whatever suits you best or better is fine for you. Just have to watch performance.

    This would be the direction that i would go.

    At this moment simple, but as the tech tree grows, i will bring the whole tech tree in a lookup table.

    https://www.dropbox.com/s/z8c31mkbj0yx0 ... .capx?dl=0

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Do the tutorials, this is basic logic,

    Spawn 4 objects with an instance variable that determines the frame (appearance) and the tower spawned

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