LittleStain's Forum Posts

  • So what you could do..

    Draw inside the lines

    This is far from perfect and pretty intensive because of the amount of sprites created, but it shows how combining blendmodes and effects can create the effect you're aiming for..

  • A triggered event can not be inverted.

    If you could explain more clearly what you are trying to accomplish, we might be able to explain how to do that..

  • I guess you were trying Something like this

  • Why would it be outlandish?

    Wouldn't it just be calling a function every time a text is either created or changed?

    I guess for creating an effect like this some sort of masking is the only visually satisfying way.

    Instead of using a sprite with bullet behaviour you might opt for a 9-patch object and chance it's width.

  • In the layer properties set force own texture to yes..

  • Adding an action to set the global variable to some other value...

    so:

    system set global variable to (any number that doesn't have an event attached)

    You probably have an event that sets the global variable to trigger this event,

    so after the event has triggered, you only have to set it back to the previous value..

    Without looking at your capx or all of your events concerning these actions it's hard to make any further recommendations.

    The way I usually handle these conditions, it wouldn't be necessary to check for them every tick, because at some point the change of the global variable is triggered and these conditions can be put as a subevent of that triggered event..

  • You could add a system trigger once condition or any other condition that is only true for that one tick..

    Adding an action to set the global variable to some other value will work too..

    The best place to do that would in this case probably be at the end of the function-actions..

  • I'm not quite sure I understand..

    If you would like to compare if both instance variables are the same there are easier methods..

    object compare variableA = object.variableB

    if you'd like to know if variableB exists within variableA you could use the expression

    system compare two values : find(object.variableA,object.variableB) is not -1

    and if you'd just like to know if the last character of variableA is the same as VariableB

    system compare two values : right(object.VariableA, 1) = object.variableB

  • My guess is using container would be the best solution for this..

    Using uid is ofcourse also possible.

    It would mean that while pinning the particles you could set an instance variable on the rocket to particle.uid

    and on rocket destroyed - pick particles by unique ID = rocket.variable

  • Change the every x seconds in the above answer to every tick and....

  • Well there is the action set rotate speed..?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Could you provide an example of the effect you want?

  • If the group is deactivated the events in that group will not be read, adding a condition would still mean checking the events for that condition..

    I don't think it would make that much of a difference in performance though.. reading through the events would take little to no time..

  • Please share you capx, unless you just want us to shoot answers untill we might accidentily hit the right one..

  • Give the sprite a second frame or second animation whith the other colour.

    sprite is dragging

    set frame (or set animation)