AnaelFavre's Forum Posts

  • 3 posts
  • Hello !

    I am still working on my multiplayer tank game and I got a problem.

    I retrieve game list using AJAX and put datas into a HashTable C3 plugin. Then i loop and can get all games datas. But how display that ?

    Solution 1 tried :

    A "game entry" on the list is composed by several text and images. In the layout already tried to pre-create containers with all elements and duplicate it for filling the list. Then in the event sheet I just have to customize all elements with datas and hide the rest.

    But hiding a container does not hide contained elements, moving either move elements. Destroy is working but i cant destroy "games entries" if i want to do pagination ...

    How it looks :

    Thanks :)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You're right, it was a picking problem.

    I didnt find any doc about Family Instance Variable and i though that if we modify Instance Variable using a picked Family it modify the global Instance Variable common to all Children Objects of this Family but it was a mistake that came from elsewhere ...

    Thanks I learn more and more about Construct2, Geat tool :)

  • Hello !

    I recently bougth Construct2 after tried it for days. I initially develop games in object oriented langages.

    However i got a problem in a specific situation :

    • I got a Bullet Family containing BulletLevel1/BulletLevel2/BulletLevel3
    • Bullet Family and BulletLevelX got a LifeTime Instance Variable
    • When a Bullet Family collide a Wall I decrease Bullet Family LifeTime (it allow me to destroy Bullets after an amount of bounces on wall)

    Problem: The Bullet Family LifeTime i decrease is global to all bullets currently in the game so it decrease all Bullets LifeTime.

    Question: How to modify an Object Instance Variable when we only got the Family of this Object (from an event based on this Family) ?

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

  • 3 posts