oosyrag's Forum Posts

  • I think a common technique is to replace the tiles with a lower resolution image/larger tile as you zoom out - you dont need all the detail when you can't see it anyway.

  • What is the difference between easystar and astar? The built in pathfinding plugin already uses a* right?

  • My first inclination would be to just build the indoor areas off screen, and teleport the player there when necessary.

  • https://www.scirra.com/contact

    [quote:3ukraxbp]Problems with Issued Licenses

    Please send a copy of your license and a description of the problem to support@scirra.com.

  • Then set the current light layer with the same parallax as the background layer? Your problem is that you can't get the light on the light layer to match up with the moon's position right? It should work fine.

    An example capx may help.

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

  • Try Construct 3

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

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