Yann's Recent Forum Activity

  • redownload (:

    I set the animation to pingpong so you have a nice back&forth movement

  • Not as far as I know

    For something like that I tend to use a string and parse its token.

    like

    list = "2
    5
    4
    3
    1"
    
    for "parse" from 0 to tokenCount(list,newline)
        -> Array: set tokenat(list,loopindex("parse"),newline) at loopindex("parse")[/code:144w90fv]
    
    (damn r0j0's too fast )
  • No it's not, time is the time since the begining of the layout, so yeah, it will be equal to 7 seconds only once... 7 seconds after you launch the layout.

    What you need to do is :

    (event 33) Sack: On Collision with Brille
                    -> Sack: Set Stunned to True
                    -> Sack: Flash: Flash 0.1 off for 3.0 seconds
                    -> System: Wait 3.0 seconds
                    -> Sack: Set Stunned to False

    All actions that are put under the Wait action (in the same event) will be triggered after the number of seconds specified.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • diabloLikeMov.capx

    have fun

  • Or you can use another sprite just to detect collisions.

    grid2.capx

  • There's no possible way to invert a collision because a collision is an instantaneous event, it's called a "trigger"

    Instantaneous because it's true just in the tick it happens. Neither before nor after.

    Maybe you can understand more about this concept looking at other triggers like "on animation finished", "on key pressed", etc.

    They are all triggers.

    To recognize a trigger amongst the other kind of condition (normal ones and loops) you can see that they have a green arrow on the left.

    You can't invert a trigger.

  • yeah MMF2 is a pain, it round off position values... if you want smooth interpolations of position you need to use variables

    Fortunately in cc and c2... it's not the case.

    So yeah if you want this behavior you need to round them off yourself (with int() or floo())

  • sprite is overlapping cave -> set visibility to invisble

    [invert] sprite is overlapping cave -> set visibility to visible

  • you do not need this NOTEXIST boolean

    if you want to know if there's a board in the scene, just count them

    plywood.capx

    here you go, you just have to understand what I did for the small boards and apply that to the big ones.

    Also Kyat is right, having dropbox makes you sexy and smell good... A dropbox account and you will be surrounded by women in no time!

  • You probabaly will have to separate calculation from character display.

    For instance

    local variable operation
    on whatever you want to do -> set operation to random(4)
    ---- operation = 0  -> do an addition
    ---- operation = 1  -> do a substraction
    ---- operation = 2  -> do a multiply
    ---- operation = 3  -> do a divide
    ---- always -> set text to tokenat("+,-,*,/",operation,",")

    There's really no way around that. 'cause you can't do something like

    eval(n1&"*"&n2) to create and evaluate an operation from a string in c2

  • try

    foreach Enemy

    Enemy var = 1

    --- etc

Yann's avatar

Yann

Member since 31 Dec, 2010

Twitter
Yann has 5 followers

Connect with Yann