dhoeke's Forum Posts

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

  • 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

  • Try Construct 3

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

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

  • Hi,

    I would like to mirror the canvas horizontally. I want to crate a 'mirror mode' for my game, like super mario or donkey kong games have (second run, but everything is horizontally mirrored).

    I suppose it's not easily done, I've searched the web up and down already, but maybe you nice folks have a good solution for me :-)

    (I do not want to rotate the canvas, but mirror it horizontally so that, for a platformer, for instance, all levels are now instead from left to right played from right to left.)

    Thanks, best,

    dhoeke

  • Hey, I don't mean to be too harsh... but your game won't even start the way you uploaded it

    You need to upload the entire folder, not just the .exe file! Those are critical game data for the executable

  • If your background is actually a Tiled Background Object, I recommend using just one tiled texture and resetting it instead of spawning one object after the other.

    -IF-

    [Tiled Background] Y is less or equal to Self.Height

    THEN

    [Tiled Background] Set Y to Self.Y - Self.Height / 2

    Just set the height of your object match your LayoutHeight * 2

    (I am assuming you are scrolling vertically. Otherwise, set Y and Height to X and Width).

    For reference, check the Auto Runner Template that comes with Construct 2, there is a horizontally auto scrolling background in there.

    Let me know if this help