Sprite hiding ?

0 favourites
  • 7 posts
From the Asset Store
Make your game more fun and interactive with the Dog Hide and Seek Buttons Sprite Sheet.
  • Hi,

    I'm making an space game.as you can see the image below.the force field overflow layout so how do i make invisible or hiding red side automatically ?

    <img src="http://i.imgur.com/PAtkMTE.jpg15962" border="0" />

  • You could cut the image. I guess the biggest question here is, why would you want to do it? Image going over layout borders is not really a problem in most scenarios, as it won't be seen anyway.

    You could also place some background colored sprites on top of it to hide the parts you don't want to be seen.

  • You could cut the image. I guess the biggest question here is, why would you want to do it? Image going over layout borders is not really a problem in most scenarios, as it won't be seen anyway.

    You could also place some background colored sprites on top of it to hide the parts you don't want to be seen.

    I make game for mobile.i add large black sprite under of layer and i center layout so the screen looks like fullscreen many devices.

    As you can see force field out of layout.If i dont cut this anyway it will look some devices.I can hide this with another black sprite but i dont want many sprite for performance. <img src="smileys/smiley1.gif" border="0" align="middle" />

  • I make game for mobile.i add large black sprite under of layer and i center layout so the screen looks like fullscreen many devices.

    As you can see force field out of layout.If i dont cut this anyway it will look some devices.I can hide this with another black sprite but i dont want many sprite for performance. <img src="smileys/smiley1.gif" border="0" align="middle" />

    Performance wise it might be your best choice (apart from scaling the layout/cutting the images). Place tiledBackground with background color over the edges and scale it to cover the area, single 32x32 or something sprite won't really give you any performance hit. :)

  • Why don't you just make your star field image bigger? Have it as large as it could possibly need to be, and maybe change it to a tiled background to conserve memory. Or start it off as big as necessary and then scale it down to match the screen size.

  • If you use letterbox fullscreen mode with bounded scrolling, the part overflowing the edge of the layout will never appear anyway. So you don't need to worry about hiding it. There is no performance problem, either, because content off-screen is not rendered.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • >

    > I make game for mobile.i add large black sprite under of layer and i center layout so the screen looks like fullscreen many devices.

    >

    > As you can see force field out of layout.If i dont cut this anyway it will look some devices.I can hide this with another black sprite but i dont want many sprite for performance. <img src="smileys/smiley1.gif" border="0" align="middle" />

    Performance wise it might be your best choice (apart from scaling the layout/cutting the images). Place tiledBackground with background color over the edges and scale it to cover the area, single 32x32 or something sprite won't really give you any performance hit. :)

    Yes,i've tried.there is no problem and maybe i will use if Ashleys way dosent work good on mobile <img src="smileys/smiley1.gif" border="0" align="middle" />

    Why don't you just make your star field image bigger? Have it as large as it could possibly need to be, and maybe change it to a tiled background to conserve memory. Or start it off as big as necessary and then scale it down to match the screen size.

    Thanks good way <img src="smileys/smiley1.gif" border="0" align="middle" />   .i can try other game.Ashles solution is      

    exact than other.Thanks again.

    If you use letterbox fullscreen mode with bounded scrolling, the part overflowing the edge of the layout will never appear anyway. So you don't need to worry about hiding it. There is no performance problem, either, because content off-screen is not rendered.

    Thanks so much Ashley <img src="smileys/smiley1.gif" border="0" align="middle" /> .I solve it .I hope letterbox mode works like scale mode.I didnt try on mobile but it works good.

    Thanks so much again <img src="smileys/smiley32.gif" border="0" align="middle" />

    Best regards,

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)