dhoeke's Recent Forum Activity

  • Strange. It doesn't work for me in neither Chrome nor Firefox... 🤔

    The screen always remains black.

  • Hi Kyatric,

    - link to the (unpublished) game: construct.net/en/free-online-games/john-alien-23249/play

    - Yes, I'm definitely using the Scirra Arcade export (via Construct-2). I also tried the html5 export for debugging, and if I use that, it won't let me upload the game (it's missing an arcade file and rejects the upload). So, it's definitely the Scirra Arcade export.

    - The console errors were added as a screenshot. Seems the forum doesn't show the image.

    GET https://construct-arcade.com/23249/0/waker.js net::ERR_ABORTED 404 playgame.js:150

    GET https://construct-arcade.com/23249/0/pathfind.js net::ERR_ABORTED 404 playgame.js:150

    index.html?ott=32cbb...b60n-4e8079810x98:1 Event {isTrusted: true, type: "error", target: script, currentTarget: null, eventPhase: 0, ...} Promise.then (async) StartGame playgame.js:110 (anonymous) playgame.js:40

    Thanks! :)

  • Hello,

    I just exported my game and uploaded it to the Scirra arcade.

    However, when I hit "View on the arcade" and check the (unpublished) game, the embedded view remains black and nothing happens. The console throws some errors:

    I suppose the game should run in the preview although it's not published yet?

    Thank you,

    ~ Dominik

    (by the way, the game runs fine with regular html5 export on my server and on itch.io)

  • I suggest to use this third party plugin:

    c2rexplugins.weebly.com/rex_date.html

    (download on the top left link on the page)

    Then you go like:

    On Start of Layout
     Set [Global Text Variable] to (Date.Year & "/" & Date.Date & "/" & Date.Day & "/" & Date.Hours & "/" &Date.Minutes)
    

    Then you need to put this into the localstorage / webstorage and restore the date upon a new game session from there and compare.

    It's pretty tricky to do for a beginner, I suppose, but this way, it will work.

    Edit: Or maybe you want to store year, date, day, hours and minutes into different variables for easier handling. I believe that may be easier.

    Edit: The plugin appearently also supports Date.Date2UnixTimestamp.

  • These are different layouts, right? Do all layouts that require this logic have the correct event sheet assigned?

    (in the project list on the right, find and left click the layout, then on the properties bar on the left, check for "event sheet" - and adjust, if necessary)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You can achieve this with particles.

    You create one sprite, then create a particle and use the pin behavior to attach it to the sprite.

    Then simply adjust the particle settings until you got what you're looking for.

  • If that would be very resource demanding, what else can I do?

    In general, I'd say, go to the events that CAUSE any tile to change to that specific state and insert the desired action there instead of checking the ENTIRE tilemap constantly. If that's possible - tilemaps are a bit of a specific thing in Construct 2.

    If you want, maybe you can describe what exactly you are trying to achieve?

  • Do you need that to happen constantly in the active game runtime? Or just once in a while, like, on layout start or on certain events?

    If you need that constantly, you'd need it to be a resource-heavy loop in any case, so it'd probably not be an ideal solution.

  • You do not have permission to view this post

  • You do not have permission to view this post

  • Oh cool, very nice solution!

    Thank you Snowmany

  • Could you post a screenshot of your tilemap in editor with the properties showing?

    If I understand what you do correctly (tilesize = 1x1 / 2x2), then you are using the tilemap in a way it shouldn't be used. I can't even think of a scenario where someone would want a tilemap with that tile size. :-)

dhoeke's avatar

dhoeke

Member since 23 Oct, 2014

Twitter
dhoeke has 1 followers

Connect with dhoeke

Trophy Case

  • 10-Year Club
  • Email Verified

Progress

11/44
How to earn trophies