Katala's Forum Posts

  • [quote:1p29s1q6]Well changing layout in webgl should free memory.

    It doesn't free memory. I exported this and replased it to use Node-Webkit v0.8.6 and I don't see any issues there.

    Node-Webkit v0.8.6 exe

  • [quote:113blgw5]Might make sure you have webgl working.

    I would think that switching layouts would prove that... other than using the conditions that is.

    Renderer expression shows webgl. Problem doesn't occur on canvas2d. Not sure how I prove that changing layout.

  • Ok I think this is Node-Webkit specific. It does't happen on NW version 0.8.6. Maybe I should make new topic about this to somewhere else?

    Also tested on C2 version 181 which uses node webkit 0.10.5 and it has same issue.

  • vlweb3d

    What else would you need that is not provided here? https://www.scirra.com/tutorials/1169/basic-isometric-projection

    I think Rojo and I already provided everything you need.

    [quote:2dbd0100]http://clintbellanger.net/articles/isometric_math/

    This might seem like very complicated but, isn't so much in the end. And you don't have to bother with it anymore. It just shows some principles if someone is interested.

  • If reading is not your thing.

  • [quote:3pka9oif]is multiple gamepad support a thing?

    Yes.

  • "An online game where you touch numbers and you can customize your character."

    "A shooting game where you run after rappers with a passive-aggressive sidekick."

    "A shooting game where you cheer up robot nazis but it's all explained in the end."

    "An indie game where you stare at essays from outside the game."

    "A horror game where you point your gun at zombie nazis but then skeletons."

    I think I'm gonna use this on next Ludum Dare

  • Memory piles up when loading image from URL

    When loading image and replacing current frame it doesn't free memory.

    Attach a Capx

    Attachment file.

    CAPX is just Sprite that keeps loading one image

    Press space to toggle loading on and off. Image is loaded from project files. I used Node-Webkit preview to see the nw process better on Windows Task Manager.

    Updated CAPX 9/23/2014

    Enter to go different layout and back.

    Steps to Reproduce Bug

    • Open Windows Task Manager
    • Run preview
    • Press space
    • Observe building up memory on nw.exe

    Observed Result

    Building up memory on nw.exe until crash.

    Expected Result

    No piling up memory usage when replacing image. If possible.

    Affected Browsers

    • Node-Webkit: YES (Easier to track memory usage)
    • Chrome: Not sure apparently NO
    • Firefox: Not sure apparently NO

    Operating System and Service Pack

    Win 7 Ultimate SP1

    Construct 2 Version ID

    180 64-bit

  • SamRock

    Well it all depends how many images and how large they are. If you don't have that much I think it should be ok to have them all in one Sprite animations. Just keep an eye on your image memory usage and if it starts to get high make some more sophisticated systems.

  • [quote:3ko3zuxj]I read that C2 loads required images/objects only when the Layout is loaded.

    I guess this means that C2 doesn't load every image in the whole project but, just images from current layout.

    You can load images at runtime using load image from URL which might be a bit misleading when actually you can load images from your project files using "DesertGroundTile.png" for example but, it seems you cannot specify the path. If you are using NodeWebkit and want to load textures from files externally you can use "NodeWebkit.AppFolder&"Textures/Desert/GroundTile.png". And of course you can also load them from URL.

    Just note that if you are using Sprite object you cannot create frames at runtime (at least not at the moment) but, something I've been using is to make tiny 2x2 frames where those images can be loaded. If you have predefined amount of different tile types you should't have to do this.

    [quote:3ko3zuxj]Can I create a common Platform Sprite and have each Level images grouped under various Animations?

    Will C2 still load all the level images into Memory even if I am not calling the animation?

    Don't put all your tiles into animations they are all loaded no matter if you use the animation or not.

    About the actual levels. If you want to keep everything inside the project one way to do this is if you have another project just for level building. Then you run the map layout just that it exports to JSON or Array or some format and store those map files inside your actual project to "Files/Maps" for example. Or if you use Node-Webkit then to their own file. To load new level, handle the loading process in the beginning and when loading a new level just restart the layout and point with global variable or something that which level will be loaded.

    Also one option is to make your own editor. The plus on this would be that you can ship that with the game of course this would be much more work if you want to make it user friendly. I personally like this approach on large projects. It can also make some things a bit easier.

  • Intentional behavior. Not a bug.

    Use abs(Object.Width/Height) < Number instead

  • Well this was neat! IDA* didn't seem to do very well

  • A lot of people have been asking about isometric games so I made basic tutorial about isometric projection.

    There is also CAPX example on drawing isometric tilemap using two Tilemap objects.

    https://www.scirra.com/tutorials/1169/basic-isometric-projection

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Animations are a bit better now than before but, on walk animation arms should swing opposite to the legs and on spell cast animations one leg should stay stationary on the ground and not slide (I also made this mistake before but, that way it looks much more natural).

    Here is one Spriter animation test I made a while ago. https://dl.dropboxusercontent.com/u/104893773/C2%20Testit/Spektaakkeli2/index.html

    Those animations started to twitch On one Spriter update.

    jump X

    attack C you can also make combo

    Someone posted one animation reference site here some time ago http://www.referencereference.com/

    Also there is quite lot reference animations on youtube.