giffjo's Forum Posts

  • So I am making a tower defense game. I have an upgrade system that if you push a button the tower will upgrade but it is on every instance of the tower. How do I make it on a select instance of that tower rather than having the attributes be assigned to all of the towers at once?

  • So I have been at this for about a week and I can't come up with anything so if anyone could help me it would be greatly appreciated. I need to be able to select a tower and spawn another object that I can select and upgrade that towers stats or I could select a button at the top of my screen that will upgrade a specific tower's stats. I am fine with either but I would prefer the first one. Everything I have tried seems to be failing. I have tried on touch of spawned object and money is > cost spawn object and it will not spawn at all. I also have the problem where when I touch the spawned tower it deletes the previous tower and takes the amount of the tower away from my money. Any help would be greatly appreciated to stop these things cause I have no idea what else to do. Below is what I have for a tower so far. Thanks again.

  • josiascaignard I did fix it, all I did was restart my computer and everything was working again. It was strange, I hadn't changed anything on it and it just didn't work. I hadn't started my computer for a few days so I tried that and everything started to work again. I hope that helps, if not this community is pretty good. There is also a subreddit r/construct that you could check out to get your questions answered.

  • So the thing that I can figure out is, I have an instance variable on my tower and I am able to build my tower without any problems. The thing that I am stuck on is when the money gets up to $30, which is the amount it costs to build the tower, and I select the already built tower, it will delete it and take away $30 from the funds available. I have tried a few things and I just can't seem to wrap my head around it. Any help is greatly appreciated and I hope I worded it right for you guys to understand. So one more time, tower is built and it cost $30 to build. when I have $30 again in the bank and I select the tower it will delete the tower and deplete $30 from my bank.

  • Anyone?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • So I'm getting "an error occurred while building the application. Verify your build assets are correct and try again. " this is the same build I built the other day. I didn't make any changes to my game I just reset my phone and didn't have the email with the link so I did it again and I'm getting this error. Any ideas?

  • So after I select a sprite I want it to be destroyed but I am not sure how to save the destroyed status into webstorage so it doesn't change back to being available to select. Any help is greatly appreciated. Thank you.

  • So I actually have the mechanics down but there is one thing that I am having an issue with. So when I purchase a character and click the buy button on said character the buy button disappears as it is supposed to but when I go back into the store the buy button is back and it will allow me to buy that character again when I shouldn't be able to. I tried using the save and load options which works but not how I want it to. It will load the game back to the store rather than the beginning of the game. Also the buy button is back if I go into the game and then go back to the store. I hope this makes sense, any help is appreciated.

  • Thank you so much. I will try that when I get home.

  • dankhan I tried changing the path and the source, they are the same except on my source it says \www at the end of it, but other than that they are the same. Do I remove the www? because when I try it errors out. I am also still getting the white screen. Any help would be appreciated.

  • thanks for the quick reply, I will remove that every tick but once I do what else would I put there?

  • So I have a game where the player gets coins and those coins save and continue to add up and you'll be able to use those coins with an in game store. But I have run into an issue that maybe someone here can help with. Here is my code for the store

    [attachment=1:3rb0jhr5][/attachment:3rb0jhr5]

    Here is the error that i get

    [attachment=0:3rb0jhr5][/attachment:3rb0jhr5]

    Here is the main part of the game where the global variable is being pulled from

    [attachment=2:3rb0jhr5][/attachment:3rb0jhr5]

    I've tried to follow all of the tutorials with no success. I want the coins to add up, am i doing things right and why do I have the error. any help is greatly appreciated.