brunopalermo's Forum Posts

  • You might use tickCount or time...

    But it would be incredibly hard for both objects to collide at exactly the same time, I guess...

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hey Yoel,

    I had this example for a popup/dialog function. Maybe it'll help you get to a solution.

    [attachment=0:38n2jfjb][/attachment:38n2jfjb]

    If you still need help on this, please, just let me know.

  • If you wanna check for that string in the name you can use:

    find(LayoutName, string)

    ex: find("1ABCDx2", "x2") would return 5.

    If you wanna get the string from the name you can use one of the expressions below:

    left(LayoutName, count)

    right(LayoutName, count)

    mid(LayoutName, index, count)

    ex:

    left("1ABCDx2", 1) would return "1".

    right("1ABCDx2", 2) would return "x2".

    mid("1ABCDx2", 1, 2) would return "AB".

    And you could even use both together:

    mid("1ABCDx2", find("1ABCDx2", "A"), 2) would return "AB".

  • Check this:

    [attachment=0:o5jvp1wi][/attachment:o5jvp1wi]

  • Set gravity = 0 works for me. But you must zero both X and Y vectors if the object is already moving.

  • Or is overlapping at offset...

  • Put the bullet behavior inside a group. Deactivate this group when the restart popup shows up and reactivate it on the start of the layout.

    Or you may add a variable, like isActive, add a condition to the bullet touch that the variable equals 1 and set it to 0 when the restart popup is showing and back to one at the start of the layout.

    Both approaches will work the same way.

  • You do not have permission to view this post

  • You do not have permission to view this post

  • Lordshiva1948 Meaning there's no option in Construct 2 for allowing you to keep events/actions related to objects that were deleted. So you don't stop them from being automatically deleted.

  • You do not have permission to view this post

  • Don't worry about the mess. We've all written messy code once...

  • Is the Key and the layer visible? Is the brick layer transparent?

  • Yep. i'd go with Somebody 's solution.

  • It seems to me you would save a lot of space and time, and keep your code more organized, if you created a function to show Hippy and his tips. I can help you to set this up, but I'd need to see how exactly this thing behaves. If you can share the capx, I could just add it there for you.