blinkn's Forum Posts

  • Nice, that is exactly what i wanted, thank you guys!

  • I need to sometimes run "console.log('something')", to check if my events inside c2 are running properly, is there a way to do this? os any other easy alternative to? i am tired of placing Text objects on screen and log my stuff...

    ps: I know about debug mode, and breakpoints, but i just want to call this command "console.log()" inside c2, i don't care if it'll run every tick.

    See ya! thanks

  • Off topic: How do you guys make these video/gif thing, what software i need?

  • Good luck man, i also want to know how to do this.

  • You don't need the 8-Direction and Solid behavior on Enemy, Just Path Finding and LOS.

    Hope that help you.

    Best Regards.

  • With CocoonJS i think you may achieve that. I don't know how to do it cuz i'm also a beginner but, i've read about and it's not too difficult (: try searching in tutorial section.

  • Search on Plugins (addon) Section on this forum, i think you'll find what you want.

  • The only thing that came on my mind right now is: control sound loop with a variable.

    Define Global Variable "Step" = 0

    Player1 is moving and Player 1 is on floor and Step = 0 > set Animation "Walking", play sound (NO LOOP), set Step = 1

    Player1 On finished Animation "Walking" > set Step = 0

    ---

    Of course you'll need the "Walking" animation for your sprite.

    I think, this is not the best solution, but, could work.

    Best Regards.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Great game, fun and addicting, congratulations.

  • Got it!

    I tweaked yout capx a bit, i have added a textbox for ~debug purposes~ you can remove it.

    I created one instance variable on Full object to store his Animation Name.

    Then, tweaked your ~is cutting~ event, wrapping inside a for each.

    Then i check the instante variable to determine which animation the full object have.

    Then i do the set animation on half objects and there you have your correct half sliced object!

    I hope i'm not too late with this solution =P

    Best Regards,

  • Can you post your capx? it's easier to understand and reply with the solution,

    Best regards.

  • You can use LineOfSight behavior to detect the "120" distance and activate the enemy movement. Combine this with moveTo behavior provided by rexrainbow and you'll get what you want.

    Here the capx of one of my examples:

    PS: The red circle is the enemy's line of sight, if you enter on that area the enemy will automatically "follow you".

    PS2: maybe you'll need to disable touch movement and enable keyboard movement on "playerInput" EventSheet.

    moveTo Behavior: https://dl.dropboxusercontent.com/u/5779181/C2Repo/rex_platform_moveto.html

    Capx: https://www.dropbox.com/s/sjwz550n5mjb4mi/hero3.capx

  • OMG! I lost it! it was recorded? say yes please!

  • You can reuse a whole event sheet just by setting the event sheet attribute of the layout to use the same event sheet from other layout.

    https://www.scirra.com/manual/121/event-sheets

    In case you only want to use some events, I'd suggest you group them and activate or deactivate the groups for specific layouts.

    You can also use includes...

    https://www.scirra.com/manual/82/includes

    Cheers,

    Wow, just what i wanted, thanks!

  • Hello Everyone,

    A quick doubt, how can i reutilize events like "player movement" and "player animations"?

    Is necessary replicate those events to every eventsheet?

    i.e

    Layout 1
    EventSheet1
        Keyboard On keydown LeftArrow
           Player Set Mirrored
           Player Set Animation "Walking"
        [...]
    
    Layout2
    EventSheet2
    @Import Events From EventSheet1 (???)
    [/code:k0tb9o5b]
    
    Is It possible somehow?
    
    Thanks