mindfaQ's Recent Forum Activity

  • https://copy.com/Tw3lYr2GlJ4AI0aj

    You need some kind of means to keep track of the maximum stack amount for the items (you can save those in a dictionary for example, the dictionary can be filled at the start of your game from a text file). Other than that the array should suffice. You can also add other qualities like description etc to it.

  • Instance variable. Keep track of which of your arrows are pinned and pick accordingly before activating the bullet behavior.

  • If it's all multiples of ten, you could check for:

    score%10 = 0

    if it's arbitrary values, you could add them as keys to a dictionary and check for them with the "has key"-expression, or you use an array and check for "contains value"

  • System -> compare two values

  • is that case sensitive? Although it normally should result in nothing getting picked, if no match is found.

    Did you create the blocks in the same event beforehand? Iirc back in my time when I was more active with Construct, that messed up picking of objects sometimes and I had to put picking stuff in an extra event.

  • like this:

  • A = 100*(yourscreenswidth-yoursprite.x)/yourscreenwidth

    Since your hotspot probably isn't on the right side, you have to, for example, also add half of your sprite's width, if it is in the middle of it.

    A = 100*(yourscreenswidth-yoursprite.x-yoursprite.width*1/2)/yourscreenwidth

    Ofc the formula needs further tweaking, if you have a moving screen, that doesn't start with x = 0 to the left.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • If you want each object to have its own dictionary, that would be possible with containers, too, though (if I am not mistaken). I'm not saying "you should", just "you could".

  • You can fill up the dictionary with key:value pairs, look if keys exist etc.

    You can't add instance variables as your program runs.

    So... they offer different functionalities. Use what seems most practical to you for each problem. Most of the times it will probably be instance variables, but that doesn't mean that dictionaries don't have their uses.

  • Hello guys,

    I used Intel XDK and Cordova to build an Android APP out of my construct project. So far all is working, except that I can't keep the game active in background. It needs to continue doing some stuff while its in background. Is there a way do enable that?

    On a side note, is full network access permission needed as default or can I somehow get rid of it?

  • I would say so, yes.

  • Yeah the browser crashes. I tried uninstalling, but didn't delete my personal data. I will try to delete all the personal data/files before a reinstallation later on, when I have the time. Since I noticed it happens with older construct apps, I don't think the problem is on Construct 2's side (thought it might be a new feature thats creating problems).

    edit: yes, works now. Don't know how something like this can happen.

mindfaQ's avatar

mindfaQ

Member since 12 Oct, 2013

None one is following mindfaQ yet!

Trophy Case

  • 11-Year Club
  • Coach One of your tutorials has over 1,000 readers
  • Email Verified

Progress

13/44
How to earn trophies