jeeba's Recent Forum Activity

  • So we have a plan to implement a laboratory of game development in our local university. As C2 is a great tool to comprehend game mechanics and educate people without a background in programming, we want to know if maybe there's a special license of some sort like other software products.

  • Hola tavito, pregunta en espa�ol y yo traducire esto al ingles

    Hello tavito, ask it in spanish and I will translate it to english!

  • Wow, that it's an awesome solution, thanks for the idea OlivierC.

  • How about a Family Filter, lets suppose we have two families, we made a ForEach FamilyA condition, and then apply the is also a Family FamilyB condition, also, we could use instance variable from FamilyA and FamilyB, and thanks to C2 that doest allow instance variables named the same, I think it could work :)

    What do you guys think?

  • This will work for me, but I was wondering, maybe we need a family type condition like:

    +family is "Boss"

  • <img src="smileys/smiley19.gif" border="0" align="middle" /> oh well, that solution of a family variable is my current method of work. Well thanks Mad for the input :)

  • It will not really work, if only Bosses got the speed variable, then you cannot capture events of enemy health, you have to give boss a health variable and then capture the events on boss.health

    Let me give it on pseudocode

    enemy.health = 0 -> boss.speed=100   

    This will make all bosses speed to 100, not the one with health = 0

  • Lets suppose I have two types of units, minions and bosses, they each have an instance variable called health. If I wanted to lower their health when a proyectile impact it, I have to create 2 events, one for the minion family and one for the boss family. But If I could have inheritance, then I could create a unit family that have the health variable and make minion and bosses their child.

    ?What do you think about it?

  • Oh my bad, ok I have uploaded a minimum project here:

    xhelos.com/c2/imba_show2.capx

    My problem is that putting a Stop Animation doesnt work, unless I put a wait before the Stop Animation action.

  • Link to .capx file (required!):

    xhelos.com/c2/imba_show1.capx

    Steps to reproduce:

    1. Move the UFO near the farm building

    2. the farm building will slowly transform (this is ok)

    3. When the animation end, a new animation will start, using events that new animation is suppose to be stopped.

    Observed result:

    The animation called "Default" is not stopped with events

    Expected result:

    The animation called Default is stopped in the first frame with events

    I managed to do it putting a wait of 0.1 seconds

    Browsers affected:

    Firefox: yes/no

    Operating system & service pack:

    Windows 7 SP1

    Construct 2 version:

    148, 64 bits

  • Awesome Rabenmutter, yes this seems its he stuff im looking for.

    AlKanadi, thanks for your answer but it's not really what I'm looking for. For example if we had 100 types of ammo that solution isn't going to be easy to maintain, I would have to do 100 if then else loops.

    Putting the name or thenickname on a instance variable will help alot.

    thanks!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I was just wondering if it is possible to create an object just using his name.

    Let's say I have a turrent and I have two types of ammunition, ammo1 and ammo2.

    If I press a button I can change the ammo type, I save that info in a Instance variable string, so every 3 seconds I shoot the object saved in the instance variable as a name.

    Its that possible?

jeeba's avatar

jeeba

Member since 9 Sep, 2013

None one is following jeeba yet!

Connect with jeeba

Trophy Case

  • 11-Year Club
  • RTFM Read the fabulous manual

Progress

12/44
How to earn trophies