guero's Forum Posts

  • Have a global TotalScore variable.

    At the end of a level, add the level score to the TotalScore variable and then at the start of the next level, set the level score to 0.

    Ok i've solved. <img src="smileys/smiley1.gif" border="0" align="middle" /> I add this action.system->add to->variable:Totalscore,value:score.

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

    Regards,

  • Have a global TotalScore variable.

    At the end of a level, add the level score to the TotalScore variable and then at the start of the next level, set the level score to 0.

    Thanks so much <img src="smileys/smiley1.gif" border="0" align="middle" /> I think just like this but i dont know how i add the score to totalscore ? <img src="smileys/smiley1.gif" border="0" align="middle" />

  • Hi,

    I've many level game.the player get different score every level.how do i add all score to one score? also when any level restart it must restart just own score.

    I wait your help <img src="smileys/smiley1.gif" border="0" align="middle" />

  • You can add url to your market link with "web" object in c2.also i use it facebook/twitter sharing :)

  • If you use eclipse.export your prject as phonegap then copy them assets/www folder and add the code your index file below.and run.

    <script src="cordova.js(must same name your cordova js"></script>

  • I want add payment my next game so i wonder this.

    i guess tapjoy can integrate with c2 games (mobile only) well.bu i dont any idea or source to make this.we can give items or coins with tapjoy ads.

  • You can try my solution.

    I already use 480*800 screen size.I set "unbounded scrolling" to YES then i create an black background under layout(very large.bigger than 4-5 times of layout size) and i set fullscreen mode to scale and the game looks like fullscreen many devices.

    For example if you desing your game for iphone 5 screen resolution and make my resolution it will be fullscreen all iphone also it looks like fullscreen at ipads with black eddge.

  • >

    > 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,

  • 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" />

  • 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" />

  • >

    > >

    > > >

    > > > > On mobile devices. Keep you physics objects few and far between. ie minimal. When C2 uses CJS Box2D accelerator then that will be a lot better.  

    > > >

    > > > Thanks <font face="Arial, Helvetica, sans-serif">@jayderyu</font> .I've allready use few physics objects.as i said before my last game strains so much though it very simple.i dont understand reason of this.You can try how it strains from link below.

    > > >

    > > > play.google.com/store/apps/details

    > > >

    > > > I cant use CJS because i use phonegap with eclipse to add some android Ad services.I believe CJS performance is better than phonegap. I still wait your help. Regards,

    > >

    > > One main issue I had when running games on phones was the sprite count, not the instances itself. So for example, I used way to many sprite objects on making a scenery, when I could have set 1 sprite to different animations and save on performance and ram for mobile devices.

    > >

    > > So what I did at the beginning was have seperate sprites for lamp, television, couch.

    > >

    > > But I then decided to set it to one sprite object called ornaments and set the ornament sprite to different animations, such as lamp,television, and couch. I did this for a couple of sprite objects and saved a ton of fps and ram especially on mobile devices, since some are fairly weak to begin with

    >

    > Cool solution. <img src="smileys/smiley32.gif" border="0" align="middle" /> but i cant use this way there is some problem like diffrent event sheet actions and behavior parameters.but as i said before It's usefull way.

    >

    > I think try pender.maybe it will work fine.

    >

    > scirra.com/forum/pender-android-for-phonegap-cordova_topic63245_page1.html

    >

    > Also i wait other help.

    >

    > Regards,

    >

    >

    You can refer to this link as well if your interested, it covers most of the problems relating to lower fps for mobile games:

    https://www.scirra.com/tutorials/298/performance-tips-for-mobile-games

    Yes,Thanks i've allready read the tutorial but i cant say it help me <img src="smileys/smiley1.gif" border="0" align="middle" />

    I wait anaother advices please.

  • If you set screen size 2048x1536 and make fullscreen mode to scale.It will be fullscreen 2048x1536 and less resolution...

  • I want get more performance my game so i want try this but i dont understand how i use.Does pender work with eclipse ?.If it is possible how do i integrate? Please explain me.

  • >

    > > On mobile devices. Keep you physics objects few and far between. ie minimal. When C2 uses CJS Box2D accelerator then that will be a lot better.  

    >

    > Thanks <font face="Arial, Helvetica, sans-serif">@jayderyu</font> .I've allready use few physics objects.as i said before my last game strains so much though it very simple.i dont understand reason of this.You can try how it strains from link below.

    >

    > play.google.com/store/apps/details

    >

    > I cant use CJS because i use phonegap with eclipse to add some android Ad services.I believe CJS performance is better than phonegap. I still wait your help. Regards,

    One main issue I had when running games on phones was the sprite count, not the instances itself. So for example, I used way to many sprite objects on making a scenery, when I could have set 1 sprite to different animations and save on performance and ram for mobile devices.

    So what I did at the beginning was have seperate sprites for lamp, television, couch.

    But I then decided to set it to one sprite object called ornaments and set the ornament sprite to different animations, such as lamp,television, and couch. I did this for a couple of sprite objects and saved a ton of fps and ram especially on mobile devices, since some are fairly weak to begin with

    Cool solution. <img src="smileys/smiley32.gif" border="0" align="middle" /> but i cant use this way there is some problem like diffrent event sheet actions and behavior parameters.but as i said before It's usefull way.

    I think try pender.maybe it will work fine.

    scirra.com/forum/pender-android-for-phonegap-cordova_topic63245_page1.html

    Also i wait other help.

    Regards,

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • On mobile devices. Keep you physics objects few and far between. ie minimal. When C2 uses CJS Box2D accelerator then that will be a lot better.  

    Thanks <font face="Arial, Helvetica, sans-serif">@jayderyu</font> .I've allready use few physics objects.as i said before my last game strains so much though it very simple.i dont understand reason of this.You can try how it strains from link below.

    play.google.com/store/apps/details

    I cant use CJS because i use phonegap with eclipse to add some android Ad services.I believe CJS performance is better than phonegap. I still wait your help. Regards,