Nazy's Forum Posts

  • 6 posts
  • Yet still I have only few global objects, like mouse & keyboard plugin, Audiere etc.

    Any more ideas guys? Because I really don't know what the hell is going on with that FPS drop :<

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • It's not about the amount of the layouts (i have only 12 of them). Im talking about playing trough the layouts (levels) in the game.

    When I complete as a player a layout (level) in a game, then each next layout (level) make my game slower and slower, to the point that my game is unplayable - due to the low FPS.

  • So here's my problem:

    I play on the first layout (level #1) in my game and my average FPS is about 300

    Then I go to the second layout (level #2) in my game and now my average FPS is about 260

    Then I go to the third layout (level #3) in my game and now my average FPS is about 220

    Then I go to the fourth layout (level #4) in my game and now my average FPS is about 170

    And so on, to the point that my game is unplayable.

    When I restart a level, then FPS do not change. It's dropping only in the next layout, after completing previous layout. Levels have that same sizes and similar amount of objects. So why each new level make my game slower and slower?

    I checked almost everything and still do not know why this is happening. I'm starting to freak out :<

    Any advices?

  • With such a great example now I know how to do it.

    Thank you very much Jayjay!

  • Snake is just one large sprite and he can grow bigger by eating fruits (by changing his width value). It's very simple snake animations so it's still looks good.

    I've never been good at using lerp, so how can I slowly move fruit from one image point of the snake to another?

  • Hello everyone (and sorry for my english),

    Imagine an object (let's call him a snake), which moves in any direction and at any angle. When the 'snake' find and eat a 'fruit', then this 'fruit' slowly moves from the head of the snake to his tail. So 'fruit' can move only inside the snake and never outside it.

    The question is - how to do that? I just can't make it work as it should.

    Any ideas guys?

  • 6 posts