lionz's Forum Posts

  • Do you mean tower 1 2 and 3 are the levels of upgrade or are tower 1 2 and 3 different types of towers? You shouldn't have a problem with this because if you say tower 1 touched - change variable, it should only affect the tower being touched, not pick all of them.

    Edit: Ok I see your screenshot now, it would make it easier if you did 'on object tapped', the hold gesture will pick all towers.

  • They are advising people to move over to the C3 runtime in C3, because it is new and previously was using the C2 runtime. Construct 2 will be maintained for bug fixes only, no additional features

  • I just meant spawn a tree at x = random(0,800) y = random(0,800) if 0 and 800 are the size limits of the layout, in its simplest form. It would pick a random value for x and y i.e. spawn tree at 43,290. It really depends on what you are trying to achieve.

  • If it's a random location then you can choose between a range of x,y and place it.

    If it's set locations but the items are random you could add the resources to an array and assign them as variables to location sprites.

    There are loads of ways it just depends how the game works. I can't really imagine your game but randomness is easy enough to do.

  • Looks great, good luck with it!

  • Well you haven't lost anything, that's why the autosave feature is there. It's going to be difficult to tell what's going on but from the look of it you saved a file called Dave.capx 2 days ago, and since then you have been working on a different file called Dave.capx.capx so maybe you are working on a different capx saved elsewhere and didn't realise. You may have done a save AS over the 2 days and saved AS Dave.capx.capx in a different location and continued working thinking it was the same file, meanwhile the autosaves continue to go in the same location.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • No problem, if it is resolved then that's great!

  • Not easy to understand, needs a better explanation really. The tower health etc would be done with instance variables on the object instead of global variables.

  • I meant something like this will be enough :

  • Some random objects have appeared there, not sure what they are. Link your capx and I can take a look.

  • You don't need to use UID. When you say ball overlapping signpost it refers to the one you are overlapping and picks that one only. Set text is on the right side, an action, textBallControls set text to ""&signpost_info.variable

  • Player overlapping door object, go to Layout 2.

    Or if using keyboard to open door, you can add keyboard object then say,

    Key is pressed and player is overlapping door, go to Layout 2.

  • Lots of ways to do it but a simple way could be :

    ball overlapping signpost, set text object position to signpost (applies to all signposts, you only need one text object)

    ball overlapping signpost, set text object text to signpost.variable, where each signpost has an instance variable text which is the actual text to be displayed.

  • You can use choose(1,2,3..) to pick a random number from a selection.

    The number can apply to a car, once picked it spawns that car.

    You can pick a random instance of a spot if it's an object and assign that goal=true, while the rest are false.

  • Collision box may be included in the no rendering off screen, not sure, but regardless it sounds like it would have little to no effect.