Coin-coin le Canapin's Recent Forum Activity

  • Hi. Is there any way to preview a sprite animation inside the editor ? I mean, other than starting the project and trigger the animation ?

  • Same effect but better performances ? Hey r0j0, do you want to make a similar version with the brightness parameter ?

  • :]

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I assume his enemies move with the bullet behavior and aren't shooting bullets.

  • So you want to pick 2 instances and handle them separately ?

    You can do :

    pick objectX by comparison

    for each objectX

    And you just have to add sub-conditions to separate them like : if UID = 0… then, if UID = 1… then, Or maybe just using an incrementing variable).

  • dt is a system expression:

    [quote:ozionj0k]dt

    Return delta-time according to the object's own timescale. See Delta-time and framerate independence for more information.

    But I don't still really understand what effect you want to achieve. That said, english isn't my native language so…

    ---> enemy : set speed to 0

    It would be easier to help you if we can have a link to your actual project.

    Check my capx, is it what you want to do ?

  • Nice system. The performance should be fine, just loop through the tiles in a square that bounds your explosion radius. You could have a set of jagged-edge sprites around the holes instead of slopes, & could probably get away with a larger tile size in that case (since you're faking extra detail & won't see squares).

    Hi,

    I didn't understand your jagged-edge sprites thing (my english isn't very good).

    However I did a try while looping through the regarding blocks :

    [attachment=1:2r1nd3ux]slopesinholespic.png[/attachment:2r1nd3ux]

    The player made a hole on top of it and my events created a nice slope on the upper left corner.

    But that's very slow and my computer has an unpleasant tiny freeze when the hole is created.

    You can try it here : http://canapin.com/construct/tolilo/05/

    And that's with only one slope ! I didn't make the three other ones.

    Here are my events :

    [attachment=0:2r1nd3ux]slopesinholes.png[/attachment:2r1nd3ux]

    It starts to be complicated !

    I'm not sure why it is that slow : when the player shoot on a straight wall, it select all the blocks on the radius border : that makes around only 10 blocks, and we test for the presence of two blocks for each of these blocks. That makes my events iterate over 20 blocks.

    Or maybe I have an issue in my loop. Maybe the "for each block" in my second function ?

  • Thank you for your reply

    Well, I never tried but I don't know why, I assumed that pick and for each couldn't be used together. And it caused me a lot of issues these past years ! Shame on me

  • Oh, nice, I didn't know this expression

  • Maybe it would be a better option to use a Timer behavior on the enemy instance instead of using the "every X seconds" system condition ?

    Can you provide a capx ?

  • Hi.

    I would like to pick some instances by evaluate, then iterate over the returned elements them to do some specific actions (like verifying if there are other instances at fixed coordinates around them).

    What's the best way to achieve that ? Should I use a function or an array or something like that or can I manage to do this with basic conditions ?

  • Like this ?

Coin-coin le Canapin's avatar

Coin-coin le Canapin

Member since 22 Dec, 2010

Twitter
Coin-coin le Canapin has 1 followers

Trophy Case

  • 13-Year Club
  • Email Verified

Progress

14/44
How to earn trophies