oosyrag's Forum Posts

  • "Access-Control-Allow-Origin:" Is a setting on your web server (Apache?) where the file you are trying to get is located. If you not managing your own web server config, such as with a third party hosting site, you might not have access to this. You can always try inquiring with your host/server admin to see if it can be enabled.

    ref: https://enable-cors.org/server_apache.html

  • Can you give an example of how you are currently assigning custom keys to your controls? It will be easier to see how best to integrate.

    Basically upon entering an "Assign key" state, add events for on left/right/middle mouse clicked - do something. This should be in parallel to your on keyboard key or button pressed.

  • Your second layout does not have an event sheet attached to it. Click the Layout, then check the properties bar to assign an event sheet.

  • Gotta break up your link a bit with spaces so it doesn't get truncated

  • Google Drive works fine.

  • Without seeing what you did, I can only say you did something wrong.

    Here is an updated example with layout switching: https://www.dropbox.com/s/881zxb3m1ch94 ... .capx?dl=0

  • Any Array can be represented as a single string with the Array.AsJSON expression. You can save this string however you want - into a variable, dictionary, localstorage, another array, ect. You can then load it again with the Array Load action.

  • Create ColumnSumVariable

    Repeat Array.Height times - Add Array.At(x,loopindex) to ColumnSumVariable

    Alternative -

    Repeat Array.Height times

    -> System compare values Array.At(X,loopindex) > 0 - Do something

    -> Else - Stop Loop

  • So an array width 4

    x indexes are

    0 | 1 | 2 | 3

    array.width-1 = 3, which would be the last column. Since I pushed to the back of the array.

    If you push to the front of the array, you would simply use 0. I don't remember if I had a particular reason to push to the back...

    As for what it does - After pushing current pick to the back, it only sets the first row value (y0). So I need to move the other values in the other two rows (y1 and y2) as well..

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Check in the properties bar when selecting the layout from the project bar. There should be a property that allows you to choose the event sheet associated with that layout.

    To create new layouts or event sheets, right click in the project bar.

  • You're saving the text in text box, which would be whatever the player decides to enter as their name.

    You can add the action go to next layout in the same event.

    Have you done the beginner tutorials?

  • You can have a single event with all the compare tile conditions with different target tiles and right click to turn it into an OR block.

    Edit: Alternatively, you can use the System-General-Is between values condition with the tileat(x,y) condition.

  • Event action:

    System - Set variable to TextBox.Text

  • I would use a variable condition. Assign each menu a unique number, and add variable ActiveMenu. Add the condition ActiveMenu=x so that you can only interact with the currect active menu, if they stack.

    Alternatively, you can just replace the previous menu completely when opening a new one, then you dont have to worry about stacking/overlapping at all. You can save what the previous menu was in a variable as well, for when you need to go back.