Kyatric's Recent Forum Activity

  • This was made as contract work, I cannot share the sources for it and I have no time at this point to write a complete tutorial on the subject.

  • To be clearer, simply post a copy of your project in its current state.

    You answered your question in your first post : arrays.

    If you want some "database relationship" arrays and dictionaries are the way to go.

  • Moved to Construct 2.

    Check the official manual and the proposed solutions it contains: scirra.com/manual/122/testing-and-publishing

    Also moved your post to the Construct 2 forums.

  • Not just like this.

    As indicated in the manual - construct.net/en/make-games/manuals/construct-3/plugin-reference/json - there is need for keys names.

    Also arrays in Construct go under a specific format :

    {"c2array":true,"size":[10,1,1],"data":[[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]]]}

    This is a blank 10,0,0 array in Construct. It is an object named "c2array" with a "size" and "data" keys/parameters.

    Your provided string does not even contain a key name and put as is in the JSON object will just trigger an error on parsing.

  • I do indeed mean Local Storage, sorry I wasn't all awaken at the time of my answer I guess.

    Editing it in my previous post to prevent further confusion.

  • The system expression "unixtime" could help you with that.

    Save it to the local storage when you exit the game, and on start of your game subtract the current unixtime from the one you saved, this will give you the amount of milliseconds that went by since you last exited your game (or saved the unixtime at the time).

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You cannot access instance variables in this way.

    You have to name them the exact way they are so in your expression, to match the first instance variable you would have to :

    self.n0

    For what you are trying to do, you should rather look into arrays and their for each condition that allows to loop through them.

  • : Please keep things civil.

    Being aggressive towards people and calling them stupid when they are just participating in a discussion is counter-productive and can result in moderation actions against your account.

  • Your browser is not correctly configured.

    At worst save the document as a .capx file and you should be able to open it in Construct.

  • Consider using the safe mode : construct.net/en/make-games/manuals/addon-sdk/guide/safe-mode

    This will allow you to reinstall some of the third-part addons you had to have C3 initialise again.

  • You do not need the "Every tick" condition.

    Your array condition only concerns the value that is stored in the cell of X 30 in your array.

    When the value for this cell is greater than the value of the instance variable ZealotHealth of your array, the action happens.

    "whenever the array becomes 30+"

    It means that it has more cells than 30, right ?

    Well, it does not matter as your condition only applies to the cell of index 30.

    You should rather explain clearly what you are trying to attempt, post the c3p of what you have done, what you expect the code to do, what you experience it doing instead.

    Be as clear and detailed as possible.

    This way you'll get the more accurate answer possible.

  • The manual is your friend : construct.net/en/make-games/manuals/construct-3/behavior-reference/pin

    Yes, pin it using "Position only" and the angle will be kept the original angle.

Kyatric's avatar

Kyatric

Member since 18 Aug, 2010

Twitter
Kyatric has 583,402 followers

Connect with Kyatric

Trophy Case

  • 14-Year Club
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • x15
    Popular Game One of your games has over 1,000 players
  • Famous Game One of your games has over 10,000 players
  • x27
    Coach One of your tutorials has over 1,000 readers
  • x10
    Educator One of your tutorials has over 10,000 readers
  • x2
    Teacher One of your tutorials has over 100,000 readers
  • RTFM Read the fabulous manual
  • Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

23/44
How to earn trophies

Blogs