oosyrag's Forum Posts

  • Adding the persist behavior to your sprite object should do the trick.

    It would be easier to diagnose if we could see exactly what you have done.

  • https://www.dropbox.com/s/3gtnd67ty83v9 ... .capx?dl=0

    Some basic trigonometry, using the angle from center to mouse to set the position after determining which edge the object should be on.

    The alternative no math solution would be to do the following every tick:

    Set the object position to the center of the viewport

    ->Use a While loop to check if the object is still within the viewport - Move 1 pixel at angle (Angle from center of viewport to mouse)

    This approach may be heavier in terms of performance though, although that may or may not matter relative to the rest of your project.

  • Without seeing an example of what you have done, all I can say is that a mistake was probably made.

  • Add condition: Buff is visible to your On Clicked Event.

  • oosyrag an example capx will be great to see

    ............

    dropbox.com/s/mtuitc8dsr6i03r/laseranimation.capx

    Rough draft.

    You can improve it by making a more solid core on the explosion sprite to hide the cut. You can also do a gradient on the masking sprite so that cut off edge is softened.

    Also I used mouse distance from the end of the laser to set the width of the mask, you probably want a different method depending on your application.

  • Moot, I recommend you not take responses or lack thereof personally on a web forum, or you'll probably end up like he-who-shall-not-be-named eventually.

    Just because Scirra actively engages with the community doesn't mean they owe everyone who asks a response (generally physically impossible due to being outnumbered, or that they would just never get any actual work done!).

    As for your specific question of " Will we have to wait long for it?", I would guess that he simply doesn't have an answer for that, and it would be silly of him to need to explain why he doesn't have an answer for it. There is no way of determining what your definition of a long wait is, and most likely there is no way of knowing exactly when or how long it will take get done at the moment anyway.

    Anyways TLDR I find it highly unlikely that anyone at Scirra would take your posts personally, so you shouldn't take what they say or don't say personally either.

  • You can do an amazing amount of patterns with the built in behaviors.

    https://www.dropbox.com/s/vf9ub4hq4r5cv ... .capx?dl=0

  • https://www.dropbox.com/s/mtuitc8dsr6i0 ... .capx?dl=0

    Rough draft.

    You can improve it by making a more solid core on the explosion sprite to hide the cut. You can also do a gradient on the masking sprite so that cut off edge is softened.

    Also I used mouse distance from the end of the laser to set the width of the mask, you probably want a different method depending on your application.

  • I can put together an example later today if you don't mind waiting.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You're looking for "bitwise" or "neighbor aware" auto tiling. The should be some working examples floating around the forums if you do a search.

    Ref: http://www.saltgames.com/article/awareTiles/

  • I would simply use a really long sprite, and clip it to whatever length I need it to be (with a blending mask) at run time, and put an "explosion" over it at the destination to cover up the cut end.

  • Maybe try a different approach? You can add a "z" instance variable (and a "depth" variable) to each object to base calculations off of.

    Using an array in this manner doesn't seem very suitable.

  • I can imagine using the invisible sprite to set a state flag that determines which side you're approaching from upon colliding with it.

    How exactly do you want the player to behave if approaching from the top? I'm assuming this is a platformer. If you land on the block from above does the player get shifted to align with the block, stuck in place where they land, or not stuck until they try to walk past the middle? Or does the block freeze them in the air if they try to jump over it?