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" />