Neller's Forum Posts

  • Hi guys,

    A little help if possible, everytime I try making a game I keep running into problems with my FPS on mobile phones, I have read LOADS of articles posted about performance and tried all of them but I still keep having issues.

    Could somebody please give me some tips on how to use the debugger to see whats causing the drop? for example whats a decent / fair number of collisions per second

    Here is a little info on the latest one I'm trying to do from the debugger...

    Object count	53 [Add to watch]
    Collision checks/sec	3089 (~70/tick) [Add to watch]
    Poly checks/sec	757 (~17/tick) [Add to watch]
    Moved cell/sec	5 (~0/tick) [Add to watch]
    Cell count	15[/code:1n1xjbms]
    
    is the above too high and the cause of my slower FPS?
    
    my game is almost complete so I would prefer not to post the file for it, and also I would like to learn how to fix this myself if possible using the debugger for the future.
    
    I can tell you mind that I don't have hardly anything running 'every tick' and I have done all the performance steps mentioned on here -  and various other ones I have seen.
    
    if it helps... the game starts on 60FPS, but as soon as I try and accelorate (using the car behaviour) the drops down to 20 odd,  thats what lead me to believe it might be the collision checks.
    
    Thanks in advance,
    Alan
  • On the Tower defense game does it have a few levels (IE a level with quite a few enemies) and does it work well on a mobile?

    I would buy it for that alone, I recently tried making my own Tower defense game and it was going ok but ran way to slow on mobile.

    Thanks

  • nevermind have sorted it

    it anybody else was looking for the same thing but wasnt sure how here is how I did it...

    1: created a 50% transparent sprite

    2: added an even when I click ont he turret to move the transparent sprite to the turrents X & Y location

    3: set the transparents sprite width and height to the range of the turret

    This creates a 'view type' effect around the turret and shows you how far the turret can see on the map.

    Might not be of interest but just in case thought I would share.

  • Hi,

    I'm looking to use the turret behaviour, but I would like to show the user how far the turret can see using a sprite (like a light)

    so lets say my turrets current range is 100, I would like display this, how would I go about doing that?

    Thanks

  • Not sure how to put this but here goes....

    Lets say I created a grid of sprites on my layout tab, in a 10 x 10 grid.

    From my events sheet can I get the animation name from the sprite form a certain co-ordinates? lets say X:300, Y:200

    What I'm basically trying to do is populate an array at the start of my game with the animation names of the sprites, so I would end up with an array like this

    Array(0,0) = 'animation name from square 0,0'

    Array(1,0) = 'animation name from square 1,0'

    Hope this makes sense

    Thanks

  • Had a look and that looks perfect, thanks R0J0hound

    I will use that with it working so well and just build the game from there, still learning the basics of C2 atm so going to do it as I go.

    Thanks for all your help guys <img src="smileys/smiley1.gif" border="0" align="middle" />

  • Thanks for the replies guys,

    Bertie Booster - thanks for that I will give it a try today, although will need to learn C2 first but shouldn't take me long hopefully :) , but reading what you say makes sense

    delgado - thanks I had a look at that and looks great, the problem for me though is the main thing missing from it is the part I actually can't do (the falling rocks when stacked)

    Again thanks for the fast responses, I will see if I can code something like Bertie Booster mentioned above when I finish work.

  • Try Construct 3

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

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

    I have recently started making (or trying!) to make some 2D games, having lots of fun on the way but I'm currently total lost on trying to do something with Boulders / rock sprites.

    I'm basically trying to get the same affect that the boulders have on 'Boulderdash' for anybody that has played it.

    Here is a working HTML5 example of that game

    boulderdash.krissz.hu/cave/A8YAEx1vuxvH/boulder1-intro/

    If you notice how the boulders fall to the side if stacked on top of each other and there are gaps to the left or right, that is what I'm trying to achieve.

    I'm new to construct today having given Stencyl a try but could not accomplish the above so going to go through the tutorials on here and see if I can do it.

    If anybody has any advice / tips on doing the above I would be very Grateful.

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