YuveshKSooknah's Forum Posts

  • 6 posts
  • Yo Robsta,

    the restart layout action always triggers the on start of layout condition.. but.. provided you stayed on the same layout..

    but when you coming from another layout..

    I can't seem to find a sweet spot to trigger the restart layout action in my event sheet..

    Have you tried anything like that before?

    Yuv

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Yep.. that's the dilemma..

    when you get back to layout A from layout B, things have changed.. the 'on start of layout' triggers only once (at the very first opening of a layout) and not every time you get back to it.. But am still gonna try the 'persist' thingy Andre..

    Thanks dude, much appreciated.. will let you know what happens..

    Anyone else came across this?

  • Hi,

    here's my situation:

    I have two layouts A & B,

    A being the default one.

    Layout A has event that will trigger 'Go to layout B' and

    layout B has event that will trigger 'Go to layout A'.

    And when I get back to layout A from B, layout A is not in its initial state. All I wish is that Layout A has been reset as if it was the first time am on it. I have tried 'Restart layout' and 'Reset Global variables' but none seems to work (or I don't know the right place to use them).

    and it definitely doesn't run through the 'on start of layout' condition when I get back to layout A..

    All I wish is a complete reset of Layout A when I get back to it from Layout B..

    Anybody?.. Please help.. it seems trivial but am stuck on it..

  • Hi,

    (1) your sprites should preferably be squares (multiples of 4) e.g. 8*8, 16*16, 32*32, 64*64,... 512*512 px.. and so on. It's also advisable not to make single large sprites e.g 2048*2048.. You might want to use tiled background objects instead of sprites in that case where you might want to break this particularly sized image into 16 512*512 images and display them using tiled backgrounds..

    (2) concerning the format, go for PNG (its going to help you on your transparencies, most preferable 24bit.. but now if you can save you artwork in 32 bit PNG.. its even better.. but not absolutely..

    Hope it helps..

  • Hi, here's my situation:

    I created a layout added some objects to experiment with physics behaviour.

    Object 1 (circular): a ball, default physics behaviour, collision mask = circle, bullet = yes

    Object 2 & 3 (rectangular): two pieces of wooden plank, default physics behaviour, Immovable = YES, prevent rotation = YES (because they need to be static on the screen), collision mask = bounding box.

    and nothing else fancy, no forloops or everytick conditions in the events..

    Basically, the idea is to let the ball under gravity and bounce off the wooden planks.. when I preview just that layout in the browser, its awesome smooth and my FPS count shows 59-60 FPS on chrome & firefox (both with canvas2d and WebGL).

    BUT when I add a second layout with a button (to act as a splash screen) so that when I click on that button, am taken to the first layout(where we have the physics going on), and when I start from the splash layout in both browsers preview, the trajectory of the ball changes slightly.. it appears to have lost speed and bounces off the planks differently. FPS count still 59-60 though. Its strange.

    Has anyone come across this before? Please help if possible...

    Thanks.

  • Heeeeeeello from Mauritius!!!

    Don't worry, you'll hear from it more often from now on.. LOL...

    Err.. The saying goes like that: leave no stones unturned...

    And Construct 2 was just probably hiding under that stone I didn't bother looking at.. My mistake.. Started with many other game engines.. even with the big 3D guys.. but Construct 2 had just the stuffs this kid ever needed to make his first game ever..

    My salute to the creators of Construct 2 and just.. everybody involved in here..

    Ok.. I'm gonna try getting myself useful now..

    Cheers ;)

  • 6 posts