Gumbo's Forum Posts

  • I am trying to colorize a text written with a sprite font with an effect (WebGL pixel shader). Unfortunately the text is no more visible as soon as I add the effect. I tried several other effects but the result is always the same. With an attached effect the text is gone. As soon as I remove the effect the text is visible again. What is going on here?

    thanks

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Well thanks, it?s working now with the following change:

    <img src="https://dl.dropboxusercontent.com/u/4928547/construct_solved.png" border="0" />

    But I really want to understand this completely. The event filters all enemies that are "is Hit" and performs the actions on them. This means that internally something like 'For each' is done by construct (For each enemy that is "is Hit" perform 'Subtract 1 from hitCount'). This is working for normal actions but not for 'Functions'. I don?t know the reason but I think it?s something like a 'const char*' in C. The pointer points only to the first element of the 'array' so the function is only called with the first of the filtered objects. Does anyone know why I have to use 'for each' for functions but not for normal actions?

  • Hi,

    I really don?t understand this... I have 2 instances of an "enemy" type. There is another object that can collide with them. When they overlap (collide) the "is Hit" boolean of the enemy is set to true. When the collider object collides with both enemies at the same time something strange is happening. I have this in my enemy event-sheet:

    <img src="https://dl.dropboxusercontent.com/u/4928547/construct_trouble.png" border="0" />

    When I step over the action "subtract 1 from hitCount" I was expecting only ONE enemy loosing a "hit point"... the enemy whoose instance I am currently stepping through. Instead both enemies are loosing a "hit point" at the same step in the debugger. It?s like the "enemy" in the action means "all enemy instances" instead of the one instance I am currently in.

    In addition to that the function "PushBack" is only called for one of the instances. I have no clue what is happening there. What am I doing wrong?

    thanks