kbtbc's Recent Forum Activity

  • I have read the trick to detect input which uses a menu input to determine weather or not the user is using touch, and only show the touch controls with touch.

    This is pretty cool, however, if you have the touch properties set to "Use mouse input" it will also register a click as touch. So, I disable "use mouse input" property. -- so now I need to manage every touch event for buttons as well. I didn't see an action about setting the "use mouse input" property to change it during events, so it's either on or off for the whole game.

    It's no biggie to add an 'Is touching' condition to my menu to handle both mouse and touch. I make an 'OR' block. However, my click event was already conditioned with 'AND' (the default) ... I can either 'OR' all conditions in the block, or 'AND' them.... not AND/OR in the same block -- which seems unfortunate because I have a few menu options, and one is a large event (it sets up the board) -- duplicating the events just to handle both touch and mouse seems like overkill ...

    Any advice here is kindly appreciated.

  • LittleStain - I just want to thank you & all the guys who have contributed to this and the other thumbstick tuts. The graphics are great, and this is fantastic to help in my current 1st project! Many thanks!

  • Artpunk -- I have never seen such a game -- very fascinating! -- I hope you take up the attempt in C2 (be prepared to learn a lot) ... it would be a fun project, and I would be interested in it's development.

  • ...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

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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

kbtbc's avatar

kbtbc

Member since 22 Jun, 2014

None one is following kbtbc yet!

Trophy Case

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

Progress

12/44
How to earn trophies