Magistross's Recent Forum Activity

  • The Browser object's "Is Online" condition may come in handy to only fetch your images if the user is actually connected to the internet.

    Not sure how robust is the "online" detection mechanism but it's worth a try.

  • Here : drive.google.com/open

    It's quite basic, a tilemap with a single tile, draw some shapes and it'll act as obstacle. I used "Solid" along with "Platform" sprite to demonstrate.

  • You might be able to come up with a hack doing what you are describing using a tilemap and its new r179 feature of disabling the collision polygon from certain tiles.

    edit: Absence of a tile is also treated as non-colliding, so it could work with prior versions if you don't need non-colliding tiles to draw your shapes.

  • If that init happens once and never need to run again later, I'd personally go for a dedicated loading/transition layout.

    If it needs to be done on a layout per layout basis, I'd go for a "Start of layout" kind of mechanic like you said.

  • And if you feel adventurous, you could try your luck with scripting. Maybe by iterating through the "localVars", since parameters can be found there. However, a serious caveat, if you have actual local variables, the indexing will most likely be off somewhere along the way.

  • Also, notice the stop-watch icon indicating that the action is asynchronous. After each "Load image from..." you should add a "Wait for previous action to complete".

  • You have to replace them one after the other. Prior to your call to "Load image from...", stop the animation and use "set animation frame" to manually select which frame you are trying to replace. Once every frame is done, you can resume the animation playback and it should be using all your newly loaded images.

    Side note : Your sprite needs to already have a two-frame animations (with placeholder images) for it to work.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • LiteSnacksIf you have the string readily available, you can simply use a sprite's "Load image from URL" action to display it directly from it.

    Like this:

  • That's basically your only way. If you want the web client to know about your variable, you have to send it. Now if that data is sensitive, HTTPS will be your friend.

  • The AJAX.LastData, using your PHP page will return exactly the same thing as if you opened it with a browser.

    So you might want to "echo" your variable somewhere along the way, so the AJAX call can return it.

  • Just for clarification, my template is Dictionary and Array based. The JSON is simply said Dictionary and Array "AsJson" representation.

    I could probably rewrite it completely to use a pure JSON solution and be a lot more flexible and expandable. However, JSON wasn't "natively" supported back then as an official Construct plugin... so I settled for a more rigid approach with arrays and dictionaries.

  • I have quite the background with Construct 2+ so I know a lot of thing firsthand. ;)

    However, the documentation is complete and easy to comprehend. From your original question, I suggest you read these articles from the manual :

    Project documentation

    Tilemap plugin reference

Magistross's avatar

Magistross

Member since 4 Jul, 2011

Twitter
Magistross has 14 followers

Trophy Case

  • 13-Year Club
  • Entrepreneur Sold something in the asset store
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

20/44
How to earn trophies