Voytek's Recent Forum Activity

  • Thank you so much for both your time and work. I am immeasurably grateful for correcting me. I find your update and refresh model higly innovative and convenient. Thank you for allowing me to step a notch higher on the programming ladder, which i am very fond of. Please remember you have done something good in the world today. Let this good wish warm you when you need it most!

  • hey, i do believe in you!

  • Thank you for showing me a direction. It seems like a way up through the "rectum" up to the stomach instead of the easy way. I am glad there is a solution though.

    BTW, if you want to see what i have been up to, take a look and perhaps do contribute to my new post closely related to the above one. Unfortunately, i have encountered a much more complicated problem than just styling :/

    scirra.com/forum/make-a-cumulative-local-storage-sessions_t182451

  • Dear Seasoned Construct 2 Programmer,

    I would like to achieve cumulative local storage sessions.

    What I mean by that is the following:

    I have managed to implement local storage to my user interface. All it does is remembering all data passed in by the user and it loads it back. All good. However, whenever a user wants to add just one new word to previously saved, the previously saved data is lost and just that one word is stored by local storage.

    I would like to fix it. Therefore, i want to add previously saved data to the new data with interface displaying everything correctly. That is why i have come up with the idea of combining my regular array with another array called "auArray".

    Despite my best effort i cannot crack this open. Perhaps there is something wrong with my index count methodology. Please find a bug and/or implement the right solution!

    here is my capx: dropbox.com/sh/vdp8na62zrp648p/AABdrw1d8vves8Ldtj3ZLTXna?dl=0

    remember to add:

    If the problem i encounter is not clear, let me know and i will explain in more details. I do believe the capx should be enough to get me at the right end of the stick.

  • Thank you for coming back to me, i really appreciate it!

    What i have built is the following:

    0. I have a textbox where a user types in words (strings).Please note, I never know how many strings the user types in.

    1. the strings are added both to an array and i give the user a chance to see what they have already typed in. This is where i use the ListBox to display the list of strings. This choice came to me naturally, because there is a scrollbar built in, which makes it easy to browse (it is a pity there is no horizontal scrollbar, but i can live with it by extending the list wide enough so that 99% of words fit in), but the problem is i detest the way the vertical scrollbar looks like. I do need it though in case the list is too big, then scrolling is essential to browse the content.

    2. the user also has a chance to remove something from the array, which they see in the ListBox.

    3. then my game begins.

    Therefore i need something that displays my array as a list with easy add/remove method, just to clarify I use only a 1d array. I have everything working the way i want to, expect i cannot tolerate how crude the scrollbar looks. Styling the list items is fine, i cannot do anything to that scrollbar though.

    I am open to alternative suggestions. However, the only thing i need is to style that "bloody" scrollbar. If something is not completely clear for any possible reason, i can post my capx shortly as i am now crushing out.

    Looking forward to your reply!

  • Thank you for your reply,

    I had read that article rather carefully before i posted my question. There is no answer regarding styling the scrollbar. I either miss some detail or you had not read my question carefully enough. Thank you for your contribution anyway.

    If i do miss something important in that article, specify the detail that might push me forward. Otherwise read my question again and have a second shot at helping. I strongly encourage you to do so!

  • Dear Knowledgeable Construct 2 Programmer,

    How Can I Style a Scrollbar of a ListBox Object?

    The ListBox object does allow css to be passed in. I do not know what i should type in to style the scrollbar though.

    I have tried to do that by using “set css style” and I typed in the following:

    Set scrollbar-face-color to #000000;

    Set scrollbar-shadow-color to #2D2C4D;

    Set scrollbar-highlight-color to #7D7E94;

    Set scrollbar-3dlight-color to #7D7E94;

    Set scrollbar-darkshadow-color to #2D2C4D;

    Set scrollbar-track-color to #7D7E94;

    Set scrollbar-arrow-color to #C1C1D1;

    None of the above seem to work.

    Please note that I have successfully managed to centre the list box items and I changed their font as well. However I cannot do anything to the scrollbar, which looks so dull…

    My second part of question is the following: how can I hide it if I ever need to?

    Would all the styles be preserved if I export my game to mobile?

    Thank you in advance!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thank you for your invaluable contribution and for sharing. I suppose this actually answers my request. I will work with the file you provided. It appears there is a straight way from your capx to my goal!

  • Thank you again, this is not exactly what i asked for but it does give me something to work with until a more straightforward solution is suggested if any at all. My concern is that what may seem to be modifiable, does not necessarily have to lend itself to be modified. Right now i take it as a good sign of possibility.

  • Thank you for your reply. There is no need to save the entire game in my case. I only need to save some data a player provides before the player begins playing the game. Besides, it may be quite handy to know how to "individually" store the array for the purposes of storing high score too.

    Perhaps i should mention I did find this thread titled "How do I save an Array using the new Local storage plugin?" on this forum, but i find it both inconclusive and i cannot make use of it in a proper way.

    Therefore, i still feel i need help outlined by my initial post.

  • Dear Honourable Construct 2 Programmer,

    How can I store an entire array in a 1d version as well as a 2d version? What’s the best way to do it? Perhaps local storage is the right tool to do it. I don’t know how though. Can you please demonstrate and include your capx?

    What i want to do is to allow a user to type in multiple strings and i put that into an array. I got this part down. Now i want this data to be available any time a user comes back to play my game until the data is changed by the user. Please note that i don’t know how many strings a user puts into my array. In other words, the number of strings is indefinite, it is not pre-defined. Then i need to store that array on the user’s device, whatever the device may be. This is the part I am stuck at.

    Thank you in advance!

  • Please do have it on your agenda. I have played with the boids plugin a bit but still could not find the solution, because the cells overlap slightly in the end. Please find some time to get round to this. Without your professional help i might be stuck with this for another 3 months or even more.

    In the meantime i have done some more "googling" to find that agar.io is supposedly using a data organising concept called "quad tree". My knowledge on this is only based on a few things i have read and i cannot conceive how it is implemented. I also hope it is not a dead end road with the quad tree as not all the info out there is reliable. I treat this info with caution.

    By the way, how did you gain the experience to be able to come up with things like that? Would you be so kind to drop some hints on how to get better at inventing/developing the code the way you CAN do it. Maybe a list of books or training processes worth undergoing which are based on your experience?

    My Construct 2 programming knowledge is only based on what i manage to find / or fail to find on this forum as well as it is backed by the very few books on construct 2, which are already a bit out of date as new features are being added and other were dropped like webStorage for instance. To be honest i wish there was one as concise and comprehensive booksource on Construct 2 as it can be or a really thorough tutorial showing how some of the really beautiful games have been made. The games i can do are pretty crude in nature like old nintendo games. They do not appear as playable and flashy as some of the games a i have seen.

    Therefore what would you recommend to do in order to get closer to your level of game dev. craft?

    I also wish i could offer something in return. That might require sending some links, which i do not really want to do to keep things within the forum regulations. I do have a pretty extensive list of hobbies to tell you about if you are interested in learning about.

    i'm biding my time until you crack the overlaping prevention thing.

Voytek's avatar

Voytek

Member since 19 Jul, 2016

None one is following Voytek yet!

Trophy Case

  • 8-Year Club
  • RTFM Read the fabulous manual
  • Email Verified

Progress

10/44
How to earn trophies