mahe's Forum Posts

  • Thanks gameglaux, I will try your proposition !

  • Hello !

    I have a problem, I would like my video to start as soon as i start my layout, but there is a delay and we see the background of the layout during 0.5 seconds almost.

    My code is like this :

    On start of layout -> Start video

    Thanks

  • Lol, thanks Plinkie,

    it really works and it's memory saving !! (I was convinced that opening the same spritesheet several time to create different animation would costs more memory even with erasing the unnecessary frames)

    I feel more reasured for my game now !

  • Hello,

    In order to save memory I would like to import one big spritesheet and create multiple animations with the same spritesheet. But when I'm trying to make 3 animations like "Idle" "Walk" and "Jump" I'm obliged to open the same spritesheet 3 times in each animation, so It costs 3 times more memory.

    Should I create only 1 Animation for the whole spritesheet and program the animation myself.

    For instance :

    Event : When function Anim("Run") is called -> set animation frame to 39 -> start animation from current frame -> Set Instance Variable to "Run"

    Event : If Instance Variable = "Run" & Frame = 50 -> Set animation frame to 39 (to loop the animation)

    What do you advise me ?

    Thx

  • Thanks Takamoto !

  • Ok Kyatric I make one very soon

  • I found the problem, my video is upside down and mirrored when I use the Mozilla preview browser. With Google Chrome browser it works well !

  • Thx Burvey, I already checked the size was good, and I also tried negative sizes, my video is mirrored under construct 2.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hello, I've import videos on my project (mp4,ogv, webm), but when I play them they are upside down and mirrored, no way to read them correctly...

    Thanks for answers.

  • Also your game seem to be nice ! And good graphics !

  • Thanks Takamoto, I feel reassured concerning memory now ! I will use 170 mb max, I thought I could'nt exceed 100 mb.

  • Also Can I convert a png with 32 bit to a lighter format ? Even If there is some loss.

    Thanks.

  • Thanks Kyatric,

    I have read Ashley's tutorial concerning memory saving,

    We planned to make a Whack a mole game for Mobile,

    For the moment we have 63 sprites (each sprite is 189*292 pixels) and we made a spritesheet wich is 1700*2044 pixels with all the sprites,

    even when I import that Spritesheet into a blank project, memory use is already 22,6 mb.

    I don't want to reduce the resolution of each sprite because 189*292 is enough small I think for phone and tablet games.

    With 7 spritesheet and other stuff we will exceed 170 mb for the project.

    What transformation can I do on my sprites before or after spritesheeting in order to decrease their weight ?

    There are Png with 32 bits 189*192 sprite wich use each above 40 Ko each.

    link to one sprite :

    https://www.dropbox.com/s/daph8wq4lsr42 ... 4.png?dl=0

    Thanks

  • Hi,

    I'm developping a game for construct 2,

    My game contains lots of sprite and animations,

    To reduce the memory I have made some spritesheets,

    I discovered the software "TexturePacker"

    but I want to use the trim mode (wich optimize spaces between sprites), with this mode I can divide by two the weight of my spritesheet wich is very interesting.

    so, is there a way to import Spritesheets with Trim mode ?

    Thanks for answers !

  • Thanks MPPlantOfficial,

    I have a png32 spritesheet wich is 424 ko,

    When I import the spritesheet it takes 24 Mb of memory due to decompression,

    I intend to do 5 more spritesheets like this, not counting the backgrounds and etc..

    I have found a super software called TexturePacker, there is a mode called trim wich optimize the space between sprites and the image is two times less weight.

    But I find No way to import trim spritesheets in construct 2, is there a way to do this ?