kbtbc's Forum Posts

  • ...update: actually the 'more precise' method turns out to be more complicated than I thought, because again there is no 'tokenfind' type of feature -- you may very well have to load both lists into arrays. I'll let someone more experienced answer that, but Ashley this is an example of my request for fleshing out the token functions. Why not have tokenfind or tokencompare built in? (or tokenappend, tokendelete, tokensort, etc for that matter?... ) ... it would make working with lists so much easier.

    (For an example of a development tool that does it right with lists, check out ColdFusion's list functions -- it would also appear C#, C++, etc has plenty of built in list methods.)

  • Here is a capx demo of the above.

    EDIT: If you need to be more precise and to compare against each element of ListA ( which may be necessary depending on your data), your sub event would be a second loop, comparing each element individually.

    For example if ListA = "onething,somthingelse" ... and ListB = "some,anotherthing" -- the capx would still return true (because find(ListA, "some") would still be true - "some" is in "somethingelse") ... so if there is potential 'data overlap' in your lists, you would need to use a second inner loop to explicitly compare each element.

    ... I hope this helps.

  • Zygorithm ... I'm not sure why you would have to sort the data if you just want to compare lists. For example, if you want to see if all elements in ListB are in ListA, just do a loop against ListB and then find() against ListA using loopindex .... Something like this:

    add global variable "ListContainsAll" = "true"

    add system loop For "ListCompare" from 1 to tokencount(listB, "," ) [assumes your list delimiter is a comma]

    add sub event condition compare two values: find(ListA, tokenat( ListB, loopindex("ListComapre"), ",") ) = -1 --> set ListContainsAll ="false"

    If you run the above and all elements in ListB are in ListA, you should end up with "ListContainsAll" still true, otherwise false.

  • Hello Sir, your game is quite fun!

    my notes:

    .... I wasn't sure at first if the boxes were power-ups or obstacles. The music and graphics are superb, as the music goes on though I would prefer the bkg music to eventually change. As well as it might be helpful for more of a sense of progress or goal -- what's my destination? ... just my 2c -- it's quite charming work!

  • Naji -- lol -- yeah, I guess I should have spelled that out :-p (sorry, bad pun) ... I appreciate your help testing and apologies for trouble ... please try 'reloading' or clearing your browser cache -- I did earlier have an issue with the menu that I fixed (there is still some clean-up with full logic, but it should work now).

    I do need to flesh out 'how to play' ... (and btw, you have quite a nice portfolio and website!)

    roberto -- thanks! -- I see you've done some educational stuff yourself - and a book - wow - you have such a rich gaming history! ... and yes, I definitely plan to work with touch controls. That, and multilayer, are my current goals. There is a lot of fun to be had! ... thanks again for your encouraging feedback.

  • I think you are making the common mistake pointed out (with solutions) here:

    https://www.scirra.com/tutorials/292/gu ... t-features

  • Sorry. For clarifiaction, your code first sets it to 1, and the very next event is 'if this value is 1' ... which sets it to two.

    You need a conditional check somewhere -- you can make it a ELSE system event.

  • Try adding a system wait = 0.1 action to your on-click events.

  • Problem Description

    AJAX action Set Timeout causes failure in IE

    Description of Capx

    Uses AJAX action set timeout.

    Steps to Reproduce Bug

    • Step 1: Preview the capx in IE 11 Observed Result AJAX call results in on error. Expected Result The AJAX call to complete. Affected Browsers
      • Chrome: (NO)
      • FireFox: (NO)
      • Internet Explorer: (YES)

    Operating System and Service Pack

    Win 8.1

    Construct 2 Version ID

    beta r175

  • Naji -- thanks for checking it out! ... If you die 'instantly' that's not right. I've tested on desktop with Chrome, IE & Firefox, and it should work.

    If you mean 'instantly' when a letter touches you, that's on purpose. Did you read the 'How to Play' ?

    Admittedly I'm not good at explaining information, and the appeal of this game would lean towards word game enthusiasts -- you spell words, and spell as many as possible before dying. The possible words are English from a subset of the OWL dictionary.

    I'd be happy to answer any specific questions.

  • Problem Description

    I am experiencing the same symptoms reported as this closed bug, but not using any 'alerts'. What is causing the error for me is just setting my AJAX timeout before the query. Here is my event sheet:

    This pulls my highscores just fine in Chrome & Firefox, but IE v11 shows "There Was An Error."

    It does not matter what I set to the timeout value, the AJAX On Error hits immediately, but only in IE.

    Removing the 'Set Timeout' action eliminates the problem.

    Construct 2 Version ID

    beta r175

    EDIT: Ungrouping the events makes no difference -- the error still occurs.

  • Sorry for the late reply -- I thought I would get a notice of some sort if someone posted in my thread... and I just looked.

    newt good point, although regex will still be slow against a properly indexed database (and what exactly would your regex be, say, to find two or more 'A's and an 'E' anywhere in any word? -- here is my run against 45000 words ... so there might be some speed/simplicity. And size. but yeah, I was just thinking out loud, very well could be overkill...

    I've yet to try more than a few hundred words at a time in C2, although I saw a post where someone was running with a 35K word set with no worries. And I personally found C2 is near instant with partial word matches for my in game 'hints'. I have a prototype of my C2 game here.

    The smaller full English dictionary (OWL) is around 220K words. A lot of word info, such as prefixes and suffixes, anagrams are separate related fields in my db, which makes it very quick. I may play around with putting this stuff in arrays in C2 and see how it runs (some of the fastest stuff I've see was done with javascript(!) ... btw, I'm by no means a pro dev, so I may not know what I'm talking about -- it's just a newly discovered hobby for now.

    jobel - thanks! ... I prefer to think of it as a 'training tool' instead of cheat ...

    Cheers!

  • Icarus ... nice work!

    Check out this trick to get the browser to reload w/out needing to force user to clear cache:

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • [attachment=0:1sv65aln]Image 6.png[/attachment:1sv65aln]

    My first game -- a hybrid word game/shooter/educational tool -- a word game training game! <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":-)" title="Smile">

    http://fun.bestwordplay.com

    I've been using C2 for just one month now -- and this is all part of learning the tool (most of my time is spent reading) about C2. I'm putting it together slowly.

    I have implemented customizable game letter sets (enter your own letters to generate word lists for play). ... nothing big but this to see what could be done with the ideas from the tutorials here incorporating words... I've shared with a few friends and they find it fairly fun & addictive.

    I plan on mulitplayer, adding touch controls, a few 'stock' letter sets to choose from, a 'story mode' and other features as I think of them.

    Hope you enjoy -- this is definitely a 'work in progress' ... Feedback on playability is most welcome.

    Many thanks!

    This sounds great ... makes we wish I found C2 sooner -- right now I just have ideas! Good luck ... and please send me promo codes if anyone needs anything rigorously reviewed! ... cheers!