mindfaQ's Recent Forum Activity

  • This is how Dota 2 does it:

    http://dota2.gamepedia.com/Pseudo-random_distribution

    Basically reduces streaks in both "directions" (spawning too fast or spawning nothing at all).

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Kind of weird, since it works seamless for me in either category. Well, audio sometimes is weird, maybe we use different browsers and because of this notice different behaviors.

  • From what I remember Cocoon's Canvas+ added around 10MB to your projects.

    Cocoon.io only added around 6mb to my game size.

    Thanks, that sounds promising.

  • Yep I know your plugin rex and it's great. I would love those features in the normal text object so everyone could enjoy them.

    Since we are talking about styling text; is there a way to replicate something like the stroke layer effect in photoshop for text (= basically an outline around the characters)? I've looked through the standard effects in C2, but have not found one that would emulate that effect (or even do a drop shadow).

  • I can't notice any gaps for looped music in a project of mine and would agree with frcol (http://strategy-investor.de/mgz10/vnengine/ this has 3 short loops on menu, load and game screen). An example showcasing the problem would be helpful.

  • I think text styling options like eli0s mentioned would be a great addition to the text object.

    Typewriter would be okay too, but it doesn't feel like this would really add anything - at least not for me.

  • Doesn't the tokenat() expression work for that, or am I misunderstanding you?

    My sentence was missing a word. Wanted to say that you can't access a random key from the dictionary (or can you, aside from the "for each key"-loop?).

    And not sure what you want to do with tokenat. Did you want to store keys like "4" for 4 letter words, "5" for five letter words and give the keys values like "park;east;gone;..."? I don't see an advantage over the array then, if anything I think it would be slower than just grabbing a value directly.

  • I'd use an array. It's not value pairs you are dealing with, but just single entries. It's also easier to access. Dictionaries are not ordered, you can't access entries randomly.

    So just create an array with size (words, 1, 1) and then fill the words.

    Construct 2 only offers sorting alphabetically as far as I can see. So if you want to quickly be able to access words with a specific length, you could for example sort your words by length right from the start and then remember where are words with length x. Another way would be creating multiple arrays (from the same object), one for each word length (give them an instance variable) and then selecting the appropriate array.

    Maybe there is also a data structure plugin that let's you perform some fast searches, but as far as I can see, your wordlist won't change once it's in a game, so theres probably no need for expensive searches.

  • Or just use local storage.

  • "Stop loop" is a System object action, and will only stop loops from the System object -- for, for each, and repeat. It won't stop Array loops, since those are independent of the System object.

    I'd suggest using a variable to set and detect loop completion

    Even easier on the code would be using a for-loop to loop through the array, because there the stop action should work (-> you'll save some unnecessary computation).

  • Dictionaries, arrays, global variables, ...

  • Arrays can store more than one element and can be stored in local storage.

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