Callan S's Recent Forum Activity

  • Might not be the most efficient method, but simply having a variable like 'ExtraLivesGiven' and it checks if score is >='ExtraLivesGiven'+1000. If so, add a life and increase 'ExtraLivesGiven' by 1000.

  • I'm interested in writing an idle game that keeps running even when you're in another tab browsing something else.

    How do I do that? Thanks

  • Can't get a break, it seems! Just spent 45 minutes trying to just get a button to change position 0 in an array to a different number!

    I thought 'Button: On clicked: Array: At 0 set to 1' would be enough. What am I missing?

    Edit: Okay, so I used a new event sheet because I didn't want to be scrolling up and down the first. Turns out the new event sheet wasn't attached to anything so the code on it did nothing. I found the 'include' function (right click on an empty space in an event sheet for the context menu, for any other new users who are wondering).

  • Probably good to make a red haze around health when wall is attacked (I assumed they were only damaging the wall!)

    Also perhaps change ammo pic for pistol as it doesn't shoot arrows. Also make a glow flash around the ammo count for it when buying ammo - I was buying but not seeing any reaction (because the ammo count was on the left and I was looking at the ammo price over on the right)

    Also it seems the difficulty rises quickly and what happens if you don't have enough money to buy what is needed to survive? Will you have easy missions that can be played to gain gold to avoid that problem, or have a harder game than that?

  • Looks nice! Might become a cult classic!

  • Thank you, korbaach!

    If you can help me further, I also want to modify each variable, which would seem simple enough but I can't figure out how construct wants me to do it?

    For example, as well as moving the numbers I want to add 1 to each first.

    So it would go '0,1,2,3,4,5', '0,0,2,3,4,5', '0,0,0,3,4,5', etc*

    I am trying to use 'for each X element' along with each tick but it doesn't seem to work?

    If I was using basic I'd just have a loop running backwards through the array, making each variable equal to the one just before it, then adding one. And that'd work. But here I have no idea how construct wants me to do this?

    * Also latter on I want it to only add if it's below 120. If its at 120, it does nothing. I'm using it as the track of plant growth, with 120 being an adult plant. Each adding of '1' to a plant represents a days worth of growin.

  • I think the road movement is out of sync with the approach of objects. It'd be good to get them at the same speed.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Would much prefer wasd control (I'm new to construct - I presume that's possible?) so I didn't really play properly because of that. Also the rate of turret spawning seems too rapid - might want to make some delimiter number that rises slowly, so if the total number of turrets equals it it wont spawn any more turrets. Right now it banks on the player destroying all turrets to ensure a steady rate of challenge.

    I see potential in it and the rampage style building collapses are neat!

  • Not much help on the last question, but here I am again. I have 'every X seconds' and I want to run something for every element of an array.

    It works once, but then does not repeat in the next X seconds (with whatever I have X set to)?

    I basically want to move each number in the array along by one. So if I had '1,2,3,4' I'd want it to become '0,1,2,3' then '0,0,1,2' and so on. But it only does the first step?

    Edit: Self solved, I think. Because of the requirements of my project, the numbers did not appear to be moving because I was shifting them along by one and raising them (and removing the last) - thus setting up the same set of numbers over and over. So I'd set up an illusion for myself! Though the way I had to do a fairly simple array manipulation was, I have to say, far more complicated in construct.

    Thanks to korbaach for their help.

  • I'm amazed that though I've done the top down shooter and the score text works in that for me, in a new project I've just tried to change a text to something else AND the code looks exactly the same and...it doesn't work???

    Every tick, set text to "Changed"

    Run it, just get "Text"!

    What the...!?

  • I've been trying and searching for about an hour - I'd like to initialise a one dimensional array (at creation of the scene) to have a value of -1 in each variable. But the actions after 'on start of layout' don't seem to include the capacity to have a for loop to do this?

    So how can I set the value of each array variable? I'm guessing construct is quite capable of doing this (as all programming languages are!), but how it wants me to tell it to do it full on eludes me!

    Also I want to show them on the screen - I'm guessing I'll use something like the shooter tutorials method, but any hints appreciated.

    In the end I'm using the array to represent days, each variable is a day and has the growth (in percentage) of a particular group of plants.

    Thanks for any help you can give!

Callan S's avatar

Callan S

Member since 2 Oct, 2015

None one is following Callan S yet!

Trophy Case

  • 9-Year Club
  • Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

11/44
How to earn trophies