dop2000's Forum Posts

  • Lancifer I still see "0 comments" in my profile, and there is no "Posts" link anywhere..

  • Have you read this tutorial?

    scirra.com/tutorials/73/supporting-multiple-screen-sizes

    Also, try changing "Unbounded scrolling" in layout properties.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Using "Wait" like this is a bad idea. Timer is a much better option, but you still need to keep pending achievement IDs somewhere.

    .

    You can try a different approach - create an array or dictionary named PendingAchievements.

    When a new achievement is unlocked, add it to this array.

    Every 1 second or so check this array, if it's not empty and AchDisplay=false, display first achievement from the array and remove it.

  • Thank you, I would be honored!

    If you need my real name, there is a facebook link in my profile :)

  • Hey, no problem! :)

  • You don't need to use containers, they just make life easier :)

    And yes, you should only add objects that live and die together. So that wearable sprite should not be in the container.

    One container can hold only one instance of each object. So you can't add CarBody and 4x instances of CarWheel into the container, it will not work.

    Very common example is to add an enemy sprite and health bar to the same container. You don't need to worry about creating/destroying the health bar, nor about picking it. You can make simple events like On bullet hit enemy -> Enemy subtract 5 from health, HealthBar set width to Enemy.Health (this enemy's HealthBar will be picked automatically)

  • Try opening browser console (F12), maybe you'll see the error message there.

  • There may be a better way to do this, but the search on the forum is broken, so I came up with this:

    dropbox.com/s/lbewjvv6rekd2na/IsometricForest.capx

  • So you have one Question sprite with animations A,B,C,D etc.

    And many Answer sprites also with animations A,B,C,D etc.

    When you spawn Answer sprites, you set random animation and random frame like this:

    Answer set animation to Choose("A", "B", "C", "D"...)
    Answer set frame to int(random(self.AnimationFrameCount))
    

    .

    Then when player clicks on the answer you check if animations match:

    Mouse On Click on Answer
     System Compare two values: Answer.AnimationName=Question.AnimationName
    

    If they match then the answer is correct.

  • rhg1968

    Collision checks are not performed if there are no events or behaviors that require them, so you don't need to disable collisions for all sprites.

    Say, if you place a hundred of sprites on the layout and run the project in debug mode, you'll see that the number of collision checks per second is zero.

  • Tom, Thanks for restoring the links in old posts!

    I don't know if you aware of this problem (please ignore if you are), but most links to the old scirra forum get redirected to an empty page, for example see links in these posts:

    List of addons

    FAQ

  • Try not to use any effects. Most effects are very slow on mobile..

    A simple effect (like "Set color") applied to a couple of small sprites can cause about 20% drop in performance.

  • You can do this using Rex's date&time addons:

    c2rexplugins.weebly.com/map.html

    There should be demo capx there as well.

  • You made a mistake adding those sprites into a family!

    They may be added to a container, but not to a family!

    These two features have completely different meaning, but many people confuse them..

    You should add objects to a container when they should be logically linked together (when they all combined make one big complex object). PlayerBox+PlayerSkin+PlayerAttackAnimation+PlayerWearable+PlayerHealthBar=make one Player

    All these sprites refer to one player, so you can add them to a container. This will make lots of things easier - picking, creating/deleting instances etc.

    Also, containers make sense when you have many instances of these objects. For example you add 4x instances of PlayerBox to the layout, and the system will create PlayerSkin+PlayerAttackAnimation+PlayerWearable+PlayerHealthBar for each of the 4 players automatically.

    If you only have one instance of each of these sprites, there is no point to add them to a container.

    .

    Families are different. You add objects that have similar features to a family. For example you can add all different monsters to one family Enemies. Or all different controls in your game into a family Buttons. This allows you to create universal events, for example: On Buttons tap -> Play "Click" sound