Nimtrix's Forum Posts

  • Please provide a bit more details if you want people to understand what you're talking about. What do you mean by interactive animations? And what exactly do you mean by source code? The project files can be found either in the project folder (where you saved you project), or inside the .capx if you chose "Save as single file". The javascript and HTML can be edited after you export your project, if that's what you're referring to.

  • Entry

  • You can make a variable in your 'LOS' object and call it something like "parent". When the 'LOS' objects are created, set the variable in each object to the UID (unique ID) of the correct 'Enemy' object. This way you can link the 'LOS' object to the 'Enemy' object and later use the variable to make sure the events only run for the correct enemy by comparing the variable and UID.

    +For each Enemy
    [ul]
    	[li]> Create object LOS on Enemy.X, Enemy.Y[/li]
    	[li]> Set variable parent to Enemy.UID

    I made this example for someone yesterday, it's not about LOS specifically, but it covers the parenting principle:

    EnemyHealthText.capx (r111)

  • You could just place it at ScrollX, ScrollY. That's the X and Y position of the camera, so that would be in the middle of the screen.

    Here's a quick example along with a few other uses of ScrollX and ScrollY:

    SpawnCenter.capx (r112)

  • I could write it down for you or take a screenshot, but it's much easier and faster for me to just upload a .capx instead of typing everything in the forums, plus you get the benefit of seeing how it all comes together. I have also added some comments to the event sheet.

    If you click the link in my signature you'll be directed to the archives page where you can update to the latest version if you want. I don't have time for anything else right now.

  • Here's one way to do it:

    EnemyHealthText.capx (r111)

  • Add it as a normal sprite object and use the Mouse condition "On object clicked".

    Edit: Make sure you add the Mouse object to the project first

  • Have you placed all the HUD elements inside of the viewport? They need to be inside the bounds of the dotted line in the top left corner if parallax is 0,0. If it's none of the above you could upload your .capx to a filehost like dropbox and post a link here so we could have a look.

  • Something like this?

    SnapOnDrop.capx (r111)

  • Do you mean any value between 0 and 180:

    random(0, 181) or random(181)

    Or do you want to pick either 0 or 180:

    choose(0, 180)

    random(a, b)

    Generate a random float between a and b, including a but not including b.

    choose(a, b [, c...])

    Choose one of the given parameters at random. E.g. choose(1, 3, 9, 20) randomly picks one of the four numbers and returns that. This also works with strings, e.g. choose("Hello", "Hi") returns either Hello or Hi. Any number of parameters can be used as long as there are at least two.

    I'd also advise you to check out System Expressions in the manual.

  • Object(A).B

    Where A is the IID of the object and B is the variable name.

    System: Compare two values ( Object(0).V1 = Object(1).V1 )

    Will compare the instance variable V1 in the first two instances of 'Object'. Would that work in your case?

  • Hmm, depends on how you handle your objects. If every object is a single frame you can just add each object as an animation frame in an animation. Then when you spawn the object, set the frame to the number you wish.

  • nutmix:

    I wanted to try making swipe with buttons, so I threw together an example. Here's the link if you're interested:

    SwipeWithButtons.capx (r111)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Try opening C2's "Preferences" and click on "Reset dialogs". Usually takes care of this sort of thing.

  • Great as usual Kyatric! Busy month, I really needed this recap. <img src="smileys/smiley20.gif" border="0" align="middle" />