codah's Recent Forum Activity

  • How did you get the file? The JSON and the capx would help.

  • There is no longer auto-complete when entering a function name

    When adding a 'Function: Call function' action, the pop-up to enter the function 'Name' no longer auto completes. Previously (R184) this field would auto-complete object and variable names.

    Capx

    [attachment=0:ernue8hj][/attachment:ernue8hj]

    Description of Capx

    The capx contains an object (SpriteFont) that contains 3 Text instance variables that match 3 function names. The capx doesn't 'do' anything but allows the user to try the steps below in the editor. It also contains a global text variable for similar purposes. Finally it contains a Function object.

    Steps to Reproduce Bug

    • Load the provided capx
    • Navigate to Event sheet 1
    • Add an action anywhere
    • Double click the Function object
    • Double click "Call function"
    • Type the letter F (alternatively, type the letter G)

    Observed Result

    When typing F or G, the letter appears in the edit box.

    Expected Result

    When typing F or G, the letter should appear in the edit box and also there should be a drop-down displaying object and variable names* that start with F (e.g. the FN object) or G (the variable GLOBAL_FUNCTION_NAME) as appropriate.

    *Edit: also system expressions, etc etc.

    Affected Browsers

    N/A; editor issue only

    Operating System and Service Pack

    Windows 8.1

    Construct 2 Version ID

    R185 beta

  • Tagging Ashley and Tom as they would probably know.

    I'm used to being in most people's future (south east coast Australia). Would be fun to see the distribution though.

  • is right. The instances picked by the 'Is Pathfinding' condition are forgotten in the next event (isMoving=1 condition) and so all instances are picked by default. One way is to directly Set Turret2 enabled/disabled at the time you do the Is Pathfinding. Another way is to create a Function to enable/disable the turret behaviour then loop through all instances at the point of picking, and pass each UID to the function in turn.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Yea sorry, I shouldn't take part in life until my second coffee.

  • Try Count instead of PickedCount

    edit: in addition to ramones's suggestion. Still not sure how that first method produces 1 for you though.

  • codah, yes, but I really don't wanna create variables for such trivial things.

    sorry CC is out of my depth.. is there a premium on variables or something?

  • That feels like a lot of cruft to me ?

    it's basically Chrome built into your app so not really cruft

    Is there some way to easily strip out things unused from APK files ?

    No.

    But see intelrobert's response above about Android builds. My apps so far are mobile only, not CPU/GPU intensive, perhaps I could use non-Crosswalk for my apps. I'm sure larger download on mobiles is still an issue for some people.

  • mrexcessive make sure you are using the right Build Settings tab.

  • I'm using this, thanks for the addon.

    We can set focus, but it would be nice to have On focus/lost focus And Has Focus.

    And/or a way of disabling tabbing out of a text box.

    Thanks.

  • oh damn.. sorry dude

    note to self, look at forum title

    In CC can you do:

    choose random number 1 to 3

    if number=1 -> play "walk1"

    if number=2 -> play "walk2"

    if number=3 -> play "walk3"

  • I don't remember exactly this is called in programming, I think it's massives.

    Never heard of it

    which adds to the already cluttered variable list in a complex project like an RPG.

    I'm not sure why instance variables should be cluttered? Sure if there are repeated variables across many objects you could make it a bit nicer with Family instance variables but otherwise, you have data, you need variables! Be wary of doing 'tricky' things like combining values unless you really need to, because you will trade off ease of use/readability with 'efficiency'.

    I think first thing to try is a 2D array with Y being each NPC 'number' and X being each attribute. 2D arrays aren't too hard. You will need to use '.at() for everything, but you can make this easier with constants such as "HEALTH=0", "XP=1" etc and use these to index into your array columns (X). You can have a npc.number to index into your rows (Y). You can go a step further then and have functions do this for you, e.g. GetHealth( npc.UID)

    I can see by your question "Will they position on the 3D array somehow too?" you must read up and experiment with arrays before tackling them in your game. Good luck and remember, eschew obfuscation!

codah's avatar

codah

Member since 30 May, 2014

Twitter
codah has 1 followers

Trophy Case

  • 10-Year Club
  • Email Verified

Progress

11/44
How to earn trophies