oosyrag's Forum Posts

  • Add a second light layer with the same parallax as the background layer.

  • Where are you loading from? AJAX?

    How are you changing the array? Are you sure that the array is not blank via the debugger before hitting download the second time?

    If you can provide a capx example of what you have done, it would be much easier to help you with your problem.

  • It is viewed unfavorably for you to bump your own topic within 24 hours.

    If your project is secret/complicated, at least you could make a new project isolating the issue you are having trouble with. You would be able to get help quicker and more accurate assistance.

    But from what I can see, the problem is:

    every 1 second - set value at (array.curx , 1) to array.curvalue - 1

    This should be array.at(array.curx, 1). See if that works?

  • You can download or save an array as JSON (basically represent your entire array as a single string), and then load hat later.

    Otherwise, if you are using a spreadsheet program to compose your data you can save to a format like .csv, include it as a project file, and parse it into an array with AJAX and the tokenat expression.

  • Ashley maybe it could be worth considering changing the layer field default for the System-Create Object action (and others?) to be the name "Layer 0" rather than 0?

    It would help in the situation where a user does significant work on their project, then decides to add a background or other layer beneath the initial one. Currently they would have to go back through all their events that created objects and update the layer field for each.

    The second benefit would be for those who don't realize you can use layer names to reference the layer at all, as it really isn't immediately obvious.

    I can't currently think of any situation where using the layer index would be preferable to the layer name.

  • For AJAX, recommend using dictionary object to store LastData, as you can use the AJAX.tag as your key. This allows you to create a single catch all event for any number of requests and tags, rather than having to create a specific event and condition for each tag/request.

    If you need history or logs, you can add a for each key event (with an incrementing counter) to push to an array. An additional step would be to add a comparison to check if the current key actually updated from the last pushed data in the array before pushing whatever is in the dictionary to the array (prevent duplicates/unecessary update).

    Sorry again for not having any ideas for websocket, I've never touched it and not familiar with the mechanics.

  • AJAX can support multiple simultaneous requests via tags, but no ideas for WebSocket.

  • This is addressed in the manual. https://www.scirra.com/manual/42/layers-bar

    [quote:1fffye9k]A number to the right. This is a zero based index of the layer (the first layer is number 0, not 1). If you need to enter a layer number in the event system, this is the corresponding number. (You can also enter layer names in the event system which might be more convenient if you regularly reorder layers.)

    Some quick experimentation reveals that to refer to a layer by name, you would use quotation marks, while a variable or other expression with the same name can be referenced without quotation marks.

  • There might a way to simulate it... just had an idea, didn't try it myself.

    Your list box can have a blank item. Have an event, when you select the blank item, to set focused a text box (invisible, or maybe overlapping the list). Upon finishing, add the textbox.text to a new list item.

  • It will be difficult for anyone to assist you without a capx to diagnose.

  • Conditions -

    Player - Pick nearest enemy

    Compare two values - distance(player.x,player.y,enemy.x,enemy.y) is less than HomingDistance

    Action -

    Player - Move at angle - angle(player.x,player.y,enemy.x,enemy.y), distance 1

  • In the 8 direction properties (you're using 8 direction behavior right?), turn off the "set angle" property. Then add an event: every tick, set player angle towards mouse.x, mouse.y.

  • You can add a list item to a list box, but you'll need to do so from another seperate element like a text box.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • https://www.scirra.com/tutorials/73/sup ... reen-sizes

    https://www.scirra.com/blog/112/remembe ... our-memory

    *For reference, a desktop pc with dedicated graphics might have 1-2 gigs of video ram, while an integrated chip might have 256 megs. Generally speaking, PCs can also allocate system RAM towards graphical memory, usually 1-2 gigs available there.

    typewriter-text-effect_t63552

    No experience with steam, but usually you want to package your program into an executable. There are third party install packaging programs that do this. You probably want a custom executable icon while you're at it.

  • Admittedly I don't have a perfectly clear image of your goal, but have you considered utilizing a percent chance to speed up after a certain point rather than a random fixed number? The result should be similar.