oosyrag's Forum Posts

  • Does it work if you just put ajax.lastdata directly into the text object?

    I think the parse action just loads it into the json object so that the json object can interface with it by keys. Not too familiar with that though.

  • You actually don't want a loop, since by nature loops will complete within a tick, and thus everything done in the loop would be simultaneous as far as the user can see.

    What you'll want is an incrementing counter, and a way to sort/order the enemies (for further reading search 'state machine').

    Lets say they have instance variable for their turn order, from 0 to n. Use a global variable "currentTurn", starting at 0. So you would pick the instance that matches currentTurn, and have it move. Upon finishing the move, increase currentTurn by 1.

  • Is your text object large enough to fit the entire string? It won't show up if it doesn't fit within the object. Or use a textinput instead.

    Also maybe turn bbcode off.

  • Did you wait for the AJAX request to finish before trying to parse ajax.lastdata?

  • Iirc this is a security issue with USB connected phones, which don't quite work exactly the same as a simple USB drive. I forgot the details but I remember reading something about sandboxing between the operating system and the phone storage, so it doesn't have anything to do with construct or html5.

  • The game previews are beautiful, but when scrolling down on the page with so many previews they begin to lag terribly. Not a great look.

    Also, when clicking the "Edit in C3" links, my first inclination is to preview the project to try it out. I don't think it would be immediately obvious for a new user to know how to do so, so maybe a highlight on the preview button when launching from those links would be a nice usability feature for new users. After all, experienced users generally are not going to be clicking on those links.

    Similar to the guided tour highlights, instead of dropping new users into the editor with no prompt (besides the somewhat unfriendly "Project exceeds free edition limitations..." message), I think there could be highlights for the preview button ("Try out the project"), and event sheet ("See the logic"), and maybe the layout editor, but that's usually already open by default and pretty self explanitory.

  • I personally think that old threads should be allowed to be necro'd. Much information has stayed relevant over the years, and long time forum contributors are still around to update broken dropbox links. The amount of relevant information outweighs the occasional necro, and even then replying to those saying that there's now a better way to do something can still be useful and not a huge chore.

    The bigger problem is the abysmal performance of the search function that likes to bring up 6 year old topics as the first link.

  • If you're using the bullet behavior, there is an action to set the angle of motion. By default it is 0, which is right. So create a sub event (under your spawn projectile event) to check if your player object is moving left, and set the angle of motion of the projectile to 180.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Add the persist behavior.

    Edit: Sorry that was wrong, there's a "global" property that you can enable that does what you want.

  • It will spawn on the tiles you define, which I have noted as "n".

  • For part 1 - I'm going to assume your flood fill algorithm continues until it reaches a yellow tile.

    Similarly, you can add an event to stop the fill function and call the clear function if your flood fill algorithm reaches an edge or boundary, which you can define.

  • + System: For "x" from 0 to Tilemap.Width÷Tilemap.TileWidth
    + System: For "y" from 0 to Tilemap.Width÷Tilemap.TileHeight
    ----+ Tilemap: Tile (LoopIndex("x"), LoopIndex("y")) = n
    -----> System: Create object Sprite on layer 0 at (Tilemap.TileToPositionX(LoopIndex("x")), Tilemap.TileToPositionY(LoopIndex("y"))), create hierarchy: False
    
  • Looks like audio.duration is not available on the same frame it starts playing.

    This is likely due to music files being streamed.

    If you use preload, and play only after preload complete, then audio.duration is available on the same tick and your trigger once event should work as expected.

  • This seems like a good place to actually use the wait action.

    In the same event, you can start playing music, wait duration-5 seconds, fade music.