kriand's Recent Forum Activity

  • The game distinguishes between tap and double-tap. So if you touch too fast, it always counts as double-tap and the condition is not fulfilled. Instead, take something like 'is touching object' and 'on touch start / end'.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Nice one as always R0J0hound. This should solve the performance issue.

    The only thing that needs to be added is to limit the angle of the road, like in my last .capx where the imagepoints x position is compared, or to adjust all objects when the road leads outside the layout on the X-axis:

    Can be made a little softer with lerp.

  • Reduces the cpu usage for some percent but not as much as i thought it would. Never the less its better then creating and destroying objects the whole time.

  • Click on the layout and set 'Unbounded scrolling' to 'No'.

  • Code looks ok to me. What is the condition above the for each loop? When you are sure, there is an element with value 1 in (X, 0, 1) and the loop was executed, check the debugger whether your objects were created but may be not on the screen. Does the layer "obj" exist in your current layout? Perhaps you add an action, which is independent of other values, such as changing a text. If the text does not change, insert the action in the direct parent event to see when the conditions are not met, and so narrow the error.

    If all this does not help, we need more information

  • Well, it works for me. Something in your approach must be wrong. Here's a more complex example:

    1drv.ms/u/s!Ap_-qxoGKbDcg3PuvzPy51vL0C96

  • Did you put the variable under an event or a group? Make sure 'Static' is enabled for your variable. If this is not the case, we need a screenshot or the capx.

  • As mentioned only in C3:

  • If you know the cell can use these actions:

  • The new C3 beta :)

    newt Did you mean my last example? Sounds like Tilemaps or do you mean something else? I do not know exactly what it is, but for me it was the fastest way to create something presentable. Not optimal but already far better than hundreds of objects. Maybe you can give a simple example. For my part I am at the end with my ideas for now.

  • With particles it is faster then with sprites but not as fast as with TBGs, at least in my attempts. I really think the fastest and best suited way for a mobile game is to use animations and fixed road parts:

    1drv.ms/u/s!Ap_-qxoGKbDcg3HteBHYrBIHUG4b

  • I can not confirm that. Both examples start with about 15% CPU usage on my PC and my example keeps this value, even though the first sprites start to fade. For the fact that tons of sprites are created, I find this utilization quite normal.

    I can imagine two options. First: I replaced the sprite with a TiledBackground and was able to reach a constant CPU usage of about 8% instead of 15%.

    The second possibility is the prefabricate and assembling of road parts with sprite frames or animations. It need a little more programming, but would run much smoother. Since it should be a mobile game, this method should be seriously considered.

kriand's avatar

kriand

Early Adopter

Member since 28 Mar, 2017

Twitter
kriand has 2 followers

Trophy Case

  • 7-Year Club
  • x3
    Coach One of your tutorials has over 1,000 readers
  • Email Verified

Progress

9/44
How to earn trophies