BadMario's Forum Posts

  • Add instance variable to tower and menu objects, for example: which = 0. Then make sure that each tower in the game has a different number and each menu's variable matches that of the tower it is assigned to.

    In your events you would check:

    Mouse> On object tower clicked > instance variable which = 2 > If menu instance variable also = 2 open that menu

    Then open menu for that tower

  • Well, that will simply show the loader layout first, but you still have to wait there for everything to download. Construct by default loads each layout into memory as needed, but all layouts/assets have to be downloaded before you can actually play anything.

    Sometimes people confuse download with load into memory.

    There is a way to set this up differently ( by loading images and sounds via browser object ), but by default the entire game has to be downloaded before it can be played.

  • An obvious thing and you may already be doing it. I always set fade in and fade out time in actions before fading in or out.

    FadObject set fade in time to 0

    FadObject set fade out time to 1

    FadObject start fade

    Or reverse fade in out times if only fading in

  • wouldn't simply setting physics to immovable while in contact with bottom box do the trick.

    Then when bottom box moves far enough make it not immovable, it should fall down

  • Most of my games are portrait 450 x 800 ( scale outer ) with an HD 1920 x 1080 layout. And game is set to scroll to 960,540 ( middle of layout). So gameplay happens in a 450 x 800 area in the middle.

    If you have a background that covers the layout and in your case all you need are some extra stars in the background you can allow full screen in landscape mode and it works perfectly fine. All you have to do is create a 450 x 800 colored square guide on the bottom layer, move your stuff into that area, delete the guide layer and you're done. Hopefully that is the case, I don't know the exact setup of you game. If object positions are hard-coded and all that needs to be redone then more work of course

    Basically gameplay stays within that 450 x 800 window in the middle, but it has stuff on each side too to cover the full screen area

  • I would check that the animation speed is set to 0.

    Maybe you left it at default so no matter what it keeps playing always ending on frame 3

  • There probably is a way to pick the top instance ( even may be called pick top ), but I usually do this stuff by having the button that is supposed to be underneath the first one off screen, same x coordinates, but something like -999 Y. Then when on touch end triggers, move top button to - 999 y, and move the other one to whatever Y it is supposed to be.

  • Easiest way would be to use scroll to. On start of layout scroll outside of layout, then slowly return back to game window. It will look like it is sliding from the side. You can also add a big black sprite that covers everything and fade it out on start of layout to mask everything just in case. That sprite will fade out after a second.

  • Do not share the idea, only specific parts/mechanics you need help with.

    Even there I would try as hard as possible to figure it out on my own. That way what you learn will have more value. Kind of: "give a man a fish feed him for a day, teach him how to fish you feed him for a lifetime", only in this case you teach yourself. Try to figure things out yourself, and ask for help only if you get stuck for a couple of days. You learn more this way and it stays with you.

  • No jank on any of my games, still on Construct 2 and my ( latest ( version of Chrome works perfectly on that vsync checker site.

    This is a 4 year old laptop, but used to be top of the line back then and is still pretty good

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You do not have permission to view this post

  • Well, I have done one, maybe it was my first Construct game, using physics. Other than occasional glitches when the ball would go flying up like a bullet, it worked fine. Fixed that glitch too.

    Sounds like you have it right. You have to apply impulse when it is touched. UP in Construct is -90 degrees, so apply impulse at -90 angle to make it go straight up. Then adjust so the angle is less or more depending where the ball is touched, that way if it is tuched on the right side it will bounce up and left, and the other way around. So formula would be: apply impulse at angle -90+(Ball.X-Mouse.X ( or Touch.X)) / 10

    I divide by 10 because the angle can be too far from -90 if you touch too far to the left or right.

    or you can use apply physics impulse toward position:

    For X position set it: Ball.X+(Ball.X-Mouse.X)*2 at image point 0

    For Y position just 0, which is straight up

  • You do not have permission to view this post

  • You do not have permission to view this post

  • You do not have permission to view this post