How do I make a menu for a tower defence game?

0 favourites
  • 8 posts
From the Asset Store
Fancy Menu
$3.50 USD
30% off
ready made menu you can download this one or just follow my tutorial to make it yourself
  • Hi!

    I'm making a Tower Defence game for my homework, and i'm following this ( tutorial to learn the basics. However, the difference is that I want to make the enemies use pathfinding instead of just direct movement.

    However, the problem is that my enemy sprites don't seem to spawn at the right place and neither do they move when I created a different event command to test out their movements. Can anyone help me? Thanks a lot!!!

    Construct File:

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hello to start off the reason your enemies are not spawning correctly.

    It's because you forgot to destroy the initial enemy outside the layout so your map can't start.

    As for adding pathfinding. I created an object called waypoint gave it a variable called number and added a variable to your enemy called currentWaypoint, whenever an enemy collides with a waypoint it will check if that waypoint number is equal to currentWaypoint,

    if it is it will find path to the next waypoint.

    Hope this helps good luck with your project

    Updated Construct File

  • Thanks a lot! I'll try it out now and update you as it goes!

  • So I figured out what the issue was <img src="{SMILIES_PATH}/icon_razz.gif" alt=":P" title="Razz" />

    I forgot to give them an "acquire path" command, and only gave them the "move along path" command. So whenever they spawned, they just never really had somewhere to move... now I feel kinda stupid...

    Anyways, the major issue I have now, is that the turrets don't seem to be aiming well and while they do fire at the enemies - they aren't facing the right angle. In addition, they don't seem to be able to acquire the target properly and seem to have issues firing when there's more then just the one target....

    Do you have any idea how I can fix this?

    Updated File:

  • Graphic of the turret is facing up. Must face to the right = zero angle.



  • Thanks! I feel really stupid now

  • Pfft, how do you think i know ? Have done those 'stupid' things too.

  • 99Instances2Go

    Hahaha, thanks a lot! So I wanted to add some extra content and add more towers as well as enemies, is there any way to create a "menue" of sorts that I can then open up with a button and choose which towers to add? or should I just make a sidebar and be done with it?

    What about upgrading the towers? is there a way to make them clickable and then they open up a menue with an upgrade menue for say, speed, strength or whatever else?

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