dop2000's Forum Posts

  • You call it "camera" which is confusing. The UI doesn't follow the player, it should stay in the same position on the screen, that's why it needs to be on a separate layer with parallax set to (0,0)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You need to save the initial values in a pair of variables. Then you can do this:

    Set value2 to startValue2*(value1/startValue1)

  • Well, if you absolutely need to use 4000px image for the background, you can of course do it. I think the maximum supported size is 4096x4096. If your image doesn't exceed it, you don't need to cut it into smaller pieces, there will be no notable difference in performance or memory usage.

    Just be aware that each of these 4000x4000 images will take about 100Mb of memory.

  • Would it be better to cut it into pieces and place it out like a puzzle? Or just use it as a whole? Can i cut it into 1000 pix each and place them next to each others??

    No, all these are equally bad ideas. What I meant is - try using a repeating background when possible. Instead of 4000px image of the sky with clouds and birds, use 200px TiledBackground with the sky, and small separate sprites for clouds and birds.

    Check out this Ashley's article:

    construct.net/en/blogs/construct-official-blog-1/remember-not-waste-memory-796

  • 1. Layout size itself doesn't matter, you can have 1000000px layout. The objects that you put on the layout are important.

    2. It's much better to have one 500x500 px background sprite repeated a hundred times, than one 2000x2000 px sprite. That's why it's recommended to use TiledBackground for backgrounds.

    3. It depends on too many factors. You should regularly check performance as you develop your game, and if you notice a big performance drop, fix it.

  • You do not have permission to view this post

  • So you have an image where each pixel represents a tile on a map?

    You can paste this image onto DrawingCanvas, then read pixels from the canvas:

    DrawingCanvas paste Map
    Wait 0
    DrawingCanvas Save Snapshot
    Wait for previous actions to complete
    

    After that you can use expressions like DrawingCanvas.SnapshotBlueAt(x,y) to get pixel color.

  • Object UIDs will be different when you switch to another layout. That's why you can't read the keys back.

    If you only need to save values for one player, don't add UID to the dictionary key names.

    If you need to save a set of keys for multiple characters, use some other identifier which you can control, for example an instance variable "ID".

  • You mean the angle from your character to the mouse cursor is between a certain angle?

    You need to use angle() expression, for example:

    angle(Character.x, Character.y, Mouse.x, Mouse.y) is between -45 and 45 degrees

  • I suggest you read about functions, they are really useful.

    You don't need AJAX if you are working with Local Storage.

    If you need to save two arrays, you give them different item names. Then you check if "SettingsArray" exists and if "LevelsArray" exists. And you should have two "On item exists" events:

    On item "SettingsArray" exists : SettingsArray load from LocalStorage.ItemValue

    On item "LevelsArray" exists : LevelsArray load from LocalStorage.ItemValue

    That's it.

  • You need to extract the name of the color into a text variable, and then do something like this:

    .

    Or you can get the numerical values for all 9 colors and replace them in the database. For example, "blue" is -1049599

  • Thanks! I probably spent too much time making it, but it was an interesting experience.

  • You can make a Loader layout.

    construct.net/en/tutorials/loader-layouts-custom-loading-9

    If your game loads fast and you want to keep the splash screen longer, you can put a few seconds Wait before switching from Loader to the next layout.

  • I made this short game for a jam organized by Russian C2 community. The theme of the jam was "Turtle Power" and the main task was to create an isometric game.

    My game won the second prize!

    .

    .

    .

    Play on the Arcade:

    construct.net/en/free-online-games/green-shadow-12599/play