VikasSanstha's Forum Posts

  • ccleaner.com/de-de/ccleaner

    you can set this

    Please see my post again. The whole point is that users should be able to do something as common and basic as clearing their browser without corrupting Construct, which is seemingly not possible. Put the plugins and settings somewhere like local>roaming like other software, where they don't get deleted every time. I love Construct but this is not a good design. CCleaner doesn't offer anything more than Chrome as far as I know. I've been using it forever. If keeping the Construct cookies solved the issue, that could be accomplished in Chrome, but it doesn't change it. I've done a bunch of tests.

  • >

    cookies not delete

    account.construct.net

    construct.net

    editor.construct.net

    www.construct.net

    I already have that set. It doesn't do anything to prevent the issue. I think it's in site settings, which you can't make site-specific settings for. Why would something like your plugins ever be in these transient type locations that are always subject to being cleared? Plugins, settings and config files are the essence of what goes into AppData>Roaming. Is there some kind of technical limitation because it's a browser-based piece of software?If not this should really be changed to behave like all other software.

  • Using events to set cursor style when mouse is over a list, although provided as an action, does not work. It's necessary to use an external stylesheet i.e.

    #listId:hover {cursor:pointer}

    which does work fine

  • It's really a pain to have to re-add all the plugins and reconfigure all of the user settings every time the Browsing Data is cleared. There is surely a better way to do orchestrate this. Put these settings in some local folder that is not affected by clearing the Chrome Browsing Data, users/USR/AppData/etc. for example, which has nothing from Construct!

    I work all the time in VSCode and FTP, with projects that require constant clearing of the Browsing Data to ensure that the most current results are being seen live, and then every time I go into Construct I have to set up everything again, sometimes 10-15 times in one day.

  • You do not have permission to view this post

  • If you're launching it from a bookmark, or from a Chrome>Startup Page setting, make sure you update those as well. This is an easy thing to overlook, and it will cause the result that you're describing, which has happened to me as well.

  • Thanks, I did a little reading and it seems like a server side request has to be made to get the filenames. It seems to be fairly easy with PHP, and some posts said it can be done with AJAX. I was thinking that since the files folder is part of Construct and the request would not be cross-domain, there might be a way to do it that capitalizes on the somewhat proprietary design of Construct, but it looks like not.

    In any case, I took the same approach that you've suggested. I used Irfanview, which has a "save filenames to txt file" option, then a couple search replace operations to format it. But it looks like this excel method is another good option. Thanks!

  • If I understood correctly, this will load a random file(png) from project files into a sprite, then set a text box to the choosen file name.

    If you want to get rid of the .png on the end use set text to replace(Variable1,".png","")

    Thanks for this sizcoz, it addresses part of what I am after. The other part though is to load images randomly from the files folder, without having to list all the filenames in a choose action. I have hundreds (thousands actually) of png files that are already prepared with nice simple descriptive filenames. If I have to type all of them into a choose action it defeats a lot of the purpose. Please see this post.

    construct.net/en/forum/construct-3/how-do-i-8/load-random-non-sequential-164100

    Thank you though, this is still helpful.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Some expressions take multiple parameters, separated by comma. In this case rgb() requires three numbers.

    You can enter these numbers directly into the event (so called "hard-coding"), or you can use variables, or get them from the array etc.

    But you can't feed to rgb() expression a single string containing three numbers, it won't accept it.

    choose() expression is a perfectly good way to do it, however if you have lots of colors, it may become too long and difficult to edit in the future.

    It will be no more than 10 or 12, so it seems like a good approach. I'm a bit OCD about keeping the event sheets simple, partly due to apprehension because there's still so much I don't understand, I want to try to limit complexity and keep it in line with my abilities. I'm learning every time I work, so that will change over time.

    Thanks again!

  • So in the editor the comma is analogous to adding another x/width column? I see what's happening now, thanks for explaining it. Hmm, I'm happy to understand it, but it seems in this particular use case, that the choose route is probably the simplest. What do you think?

  • In the end I've decided to just use choose, it's simpler, there's no array, and it's easy to add or change colors. The end result is the same.

  • I would really like to learn how to accomplish this if anyone has any thoughts. It seems like it must be possible. The filename and therefore the prefix is passed through when it's loaded from the url, so there must be a way to store it and use it. This again is the crux.

  • What I don't understand is why all this becomes necessary just because I have populated the array of color choices via a JSON files as opposed to using the event sheet. None of this splitting up the r,g,b values was necessary when using the event sheet. It's still the same array, I don't get it. This seems more trouble than its worth. Overall it's more complex.

  • It may be easier to store colors as hex-string, for example #00aaff

    It's easy to convert them to RGB values with a bit of JS, see event 3 in this demo:

    https://www.dropbox.com/s/87rss2d46mt13iy/ColorPickerTextbox.c3p?dl=0

    Yes, hex would I think be easier since there is no delimiter. I was very surprised to see that C3 lacks hex support. It's so basic to HTML5. I hate working in RGB. As an aside the lack of color pickers in the C3 UI is a definite productivity hinderence. It would be like Photoshop not having a color picker.

    I see the JS for this is short. I will try to figure it out. Thanks!

  • Here you go:

    https://www.dropbox.com/s/lipxgfm97ed6l2y/Sentence%20tutor%20one%20array2.c3p?dl=0

    Note, that I moved "Set currentSentence" action into the "createSentence" function.

    Edit: also added 1px of transparent space around flags to fix the outline. Please re-download the file.

    Thanks so much! I'm going to study it a bit more. Very happy to hopefully learn how to do this efficiently, as it will be relevant in a lot of the content I create. The two separate arrays is a really bad way to work for bilingual educational content, since I would have to manually maintain synchronization across two separate files whenever changes are made, even something as simple as re-ordering.