R0J0hound's Recent Forum Activity

  • You can do this:

    1. save the x,y of the clicked object in some variables.

    2. pick all the sprites and check if the points overlap a sprite at offsets x+32,y x-32,y x,y+32 x,y-32

    3. If all four offsets pick a sprite then don't destroy the clicked object.

  • Somebody

    Oh cool, thanks for the icon.

    With the Draw Quad action the first coordinate in the top-left and the others are in clockwise order.

    So top-left, top-right, bottom-right and bottom-left.

  • Somebody

    You can do that. The only thing to consider is each instance will have it's own texture. It's not really an issue unless you run out of video memory.

  • Irbis

    The "load from url" action is not instant so you can't paste right away. You either would have to do it after a wait or under TiledBg's "on image url loaded" condition.

  • A simple effect to adjust the hue of a image.

    Using the code from here:

    http://gamedev.stackexchange.com/questi ... brightness

    Why not use the HSL shader that comes with C2?

    My graphics card can't handle that shader.

  • Just drag a global variable to a sub-event of something

  • tgeorgemihai

    I mean putting the "pick all solidWall" in between you overlap conditions.

    So instead of what you have now:

    PlayerAheadLeft is overlapping solidWall
    PlayerAheadRight is overlapping solidWall[/code:27k6r58q]
    
    Do this for all 4 of your events:
    [code:27k6r58q]PlayerAheadLeft is overlapping solidWall
    Pick all solidWall
    PlayerAheadRight is overlapping solidWall[/code:27k6r58q]
  • Not as soon as it's added, just when you need to do the time calculation. Now you could convert it to minutes or hours just as easy. So for example you could do this:

    TotalMinutes = 0

    ListText = "0230-0420"

    time1 = tokenAt(ListText, 0, "-")

    time2 = tokenAt(ListText, 1, "-")

    minutes1 = int(left(time1, 2))*60 + int(right(time1, 2))

    minutes2 = int(left(time2, 2))*60 + int(right(time2, 2))

    TotalMinutes = TotalMinutes + minutes2-minutes1

    Set text to zeropad(int(TotalMinutes/60), 2) & TotalMinutes%60

    Which would give your result in hours and minutes or "0150".

    If instead you want it display the total minutes in hours you can do this:

    Set text to TotalMinutes/60

    which would give "1.83333333'

    Or if you always just want only two decimal places you can do this:

    Set text to int(TotalMinutes/60) & "."& zeropad(int((TotalMinutes%60)*100/60), 2)

    which would give "1.83"

  • So the first two digits are hours and the second two are minutes. So you could convert a string like "0245" to a decimal hours with:

    Int(Left(text,2)) + int(right(text,2))/60

    Which will give 2.75

    In simpler terms it's just this:

    Hours + minutes/60

  • The canvas and paster plugins allow you to create your own images.

  • tgeorgemihai

    For that you could add a pick all solidWall condition between the overlap conditions.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Ok, here's two examples, one using the physics behavior and one using the chipmunk behavior