goldboyj's Forum Posts

  • 7 posts
  • Nimtrix,

    Thanks for the help. It took me a while to implement but I can see it working now. I understand what you mean be the "power of two values". I just normally like to work with round numbers as they are easy sets to identify. I will try optimize my game as I build it according to your feedback.

  • as for fighting

    here is my suggestion

    put a invisible sprite sensor over each tower(this is the range)

    for each enemy

    collision with sensor

    -> rotate tower(that belongs to the sensor) towards angle(tower, enemy)

    ->check angle change. If angle change = 0. Shoot

    Hi Jayderu

    I'm also trying to build a game like this. Could you explain more about how to make the sensor belong to a tower?

  • Hi Nimtrix,

    I got the Drag and drop to work properly but now I'm wondering how I could offset the X co-ord so that it lines up with my background grids but still retains the userbility when you hover over destination and doesn't jump ahead before cursor reaches next grid block?

    dl.dropbox.com/u/74662263/TowerDefense_Test_gridBG.capx

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks Nimtrix. I can see how this improves the performance. I will continue to work with this and see how it goes.

  • Nimtrix

    Thanks for the reply. I assumed that because I was using similar code to what Yann displayed it would have been suitable to post in this thread.

    Anyway, I have reposted my query into a separate thread here

    construct.net/en

  • Hi guys,

    I have started a new thread for this question. I would like to get a better dragdrop experience. What should happen is that when the user clicks on the tower icon (bottom left),the user is then able to drop the the tower on the background. Once the user releases the tower it snaps to a location on the background. A good example of this is with Plants VS Zombies.

    Here is my current project file

    dl.dropbox.com/u/74662263/TowerDefense_Test.capx

  • Hi guys,

    I just started using construct and I wanted to give a try at making a game operate similar to PvZ. So far I am trying to get the snap to grid to work but I'm having some slight issues.

    Here is my project file so that you can see what I have so far:

    dl.dropbox.com/u/74662263/TowerDefense_Test.capx

  • 7 posts