matrixreal's Forum Posts

  • Use max() and it will stop exactly at 400.

    +-------------------+
    | sprite: width<400 | sprite: set width to max(400, self.width-10*60*dt)
    +-------------------+[/code:1nno7ry5]
    
    If the value is increasing instead you can use min().
    

    its stranger .... it set directly width to 400 (without the gradiant effect)

  • thanks a lot really appreciate it

    and then i can also use it for if x < 400 (for example) without use the moveto rex plugin ?

  • 7Soul

    that's ok it work for moving object

    but if for example i want to set an image with this (if with of sprite < 400 then set sprite.width to self.widht-10*60*dt)

    it always stop at different with and not exactly to 400

    any suggest ?

  • > what about screenshot ? how it work ?

    > it is saved on local ?

    >

    It saves online to your website.

    is there a way to make the plugin working on ejecta ?

    thanks for reply

  • >

    > > Do as google does, slice it up in parts.

    > >

    >

    > Which will only help if you dynamically load and unload them from memory, right?

    > Which construct 2 doesn't do as far as I know..

    > All images on a layout are loaded into memory at start of layout..

    >

    > https://www.scirra.com/blog/112/remembe ... our-memory

    >

    Slicing it up in parts will aid the rendering. (Image not on screen etc)

    Also, some devices are unable to handle image of enormous sizes.

    He could, divide the sliced parts over layouts too. i.e. have 4 pieces on each layout, the cross section in the middle, if you come close to one of the layout edges, load the other layout corresponding to images.

    example, the 4 squares would be layouts, the transparent squares image parts.

    This could greatly reduce the performance problem. It just requires a bit of smart approach <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

    an .capx example to understand better what you want to explain ?

  • hi,

    since there are a lot of plugin (cranberry and others)

    i'm trying to switch to intel xdk for android and ios

    believe me ... ejecta is much better specially when phoboslab (creator of ejecta) enable webgl

    however i'm trying to use crosswalk (android) and cordova

    i would like to know if the "force on own texture" and use "render cells" will help me to increase performance

    thanks

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • why power of 2 is better for background or tiled background ?

    example ? please

  • ludei

    hi,

    can i use this plugin (https://github.com/ludei/webview-plus/) on my crosswalk project and will work with intel xdk compiler (just to try) ?

    and what about "width=device-width" and "minimum-scale=1"

  • any solutions guys ? i have same problems with admob and crosswalk

  • the only 2 things on crosswalk are size and performance ...

  • A patch has landed in Crosswalk 15 (not yet released) - https://github.com/crosswalk-project/cr ... 085fb069e8

    They are backporting it to CW 14 at some point. Our team is trying to schedule meetings to see everything involved so we can get this to developers ASAP.

    it will be excellent if you release this cw15 since it fix performance on s3 samsung

    i'm waiting on update because all my users told me that performance are bad on the game (crosswalk)

  • Ashley

    i'm not good in english i try to translate what you write and just tel me if i'm wrong or not

    1- for example i have a sprite with width 80 and height 100 (with no transparanecy spaces)

    then to avoid waste memory i have to make it as 100X100 with transparency spaces ?

    what about the story about the 1 or 2 pixel around the sprite ?

    2-is that same for tiled backgroud ? if the recommanded power of 2 is for example 128 X 128

    then we have to put a png with 127x127 or 126 x 126 ?

    i'm a little confused

  • hi all,

    i just want to stop bullet of a sprite at exact position (x or y)

    i use if sprite.X < 80 set bullet desable or sprite.x > 80 set x to sprite.-5*60*dt

    but always it stop at different X

    see .capx https://www.dropbox.com/s/o4dn71frsdheu ... .capx?dl=0

    thanks for help

  • you can call direct link with browser plugin

  • thanks a lot cranberry