matriax's Recent Forum Activity

  • This can be solved in a easy way if shadows works like:

    Always above sprites but the cast starting out the sprite instead of inside.

    The problem now is the shadow caster make the collision poligon with shadow so you have to put the light under the sprites and appears problem like this.

  • No works because the objects to hide are the same ones that blocks the line of sight so never is visible , i don't know if i'm explaining well.

    For line of sight you set wich objects acts as "block" and the box is a sprite that have to block and one that have to be hidden.

    Also even if there is someway to fix that no matters because, what happens when the shadows have to hide some part of the sprite? With line of sight the sprite is visible or not, in the example will be ok, but if the shadows only gets half of the box will appear entirely so still not will be 100% correct. :S .

  • The problem with shadow caster is that you need to put the light under the sprite to not hide but then when you use dinamic lights they not hide the sprites that are in the shadow of other object.

    Here an example of the prototype i'm working :

    That box in the bottom needs to be hiden, how i fix that? Is there any way to set that if a shadow of other object overlaps other hide this one or apear over them or something?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Ok thanks!

  • I found some way, is not desired but works.

    Every tick > Set Sprite to cursor "MyImageCursor"

    And in the cursor sprite add the animation frames of the rotation.

    Will try to search to see if there is another way to hack it, maybe with some "execution javascript" ? mmm

  • Yep, i already have that, using the MouseXY position have some lag, is not 100% precise.

    BTW, thanks for the help!

  • I have a sprite to be used as "set cursor from sprite" on start layout.

    I tried adding a rotation bevaviour but the sprite not rotates.

    How can i fix that?

  • Hi Gigatron , any news about this?

  • justifun Use the Opacity of the sprite should work

  • Hi Gigatron

    I updated your .capx adding an example in 9patch of what the shader needs to do to works the best:

    https://drive.google.com/file/d/0B8vm3F ... sp=sharing

    In the grass example you can resize in X or Y and no matter always looks pixel-perfect.

    Maybe i'm asking too much for a shader ? :S

  • Hi Gigatron

    9-Patch is a C2 default plugin , is hard to explain so better try and see how they works.

    The problem about this plugin as i said is that not allow animation/frames and not allow rotations, so the idea is use a Sprite plugin instead with a shader that allos the same option to have the ability to ass frames/animation and rotations.

    Basically 9-patch get the image you add and rip in 9 parts like:

    123

    456

    789

    In the plugin properties you set how this image is Tile-based with pixel width/height in left/right/top/bottom and if they will work as tiles, stretch or how. Is hard to explain better see the 9-Patch official manual here:

    https://www.scirra.com/manual/151/9-patch

    So the idea is that, in case is possible, do a shader that can do the shame for a sprite image.

  • Nothing?

    Gigatron is possible with the actual shaders in C2 ?

matriax's avatar

matriax

Member since 22 Jun, 2015

Twitter
matriax has 114 followers

Trophy Case

  • 9-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Popular Game One of your games has over 1,000 players
  • Famous Game One of your games has over 10,000 players
  • Viral Game One of your games has over 100,000 players
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

17/44
How to earn trophies