matriax's Forum Posts

  • Gigatron

    Yes now the opacity works fine thanks! but still the problem with the weird thing, check:

  • 99Instances2Go , mekonbekon Well, maybe i talked too fast XD , after some tests none works correctly an each solution have similar issues :S .

    First image is using line of sight, the second image using raytracer.

    I'm trying adding other events or edit some parameters but never get it working 100% correctly :S

    Any idea? I'm, gonna try to do some double checking liek if both can see each other.

    Also with RayTraces in theory have to work after see some examples but at least in the .capx as you can see boxes behinh others are visible ¿? :S .

  • Tested Both and the Line Of SIght works better, the trace one makes the sprites "flash" to fast some times like not works correctly or something i don't know. Also the player gets 10 opacity? I tried to change but seems then not works :S , make all slowly and all 10% opacity... 99Instances2Go what happens?

  • Wow mekonbekon !! Very clever solution!

    99Instances2Go Thanks for the info/example, i will download the trace plugin and test it too but i guess i will use the mekonbekon solution due no require more plugins ans seems to works easilly.

    Also the Trace plugin with this solution maybe can i use it for other things, will see!

    Thanks both of you guys!

  • Gigatron, well, corrected the perspective enough to work visually, obviously with a camera parameters this trick will works for any kind of setup not only my one.

    Here a gif with the correction:

    Here a simplified and comented .Capx :

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

    I'm asking for some kind of camera parameters but will work any thing that can works like that for any kind of setup without using the tricks , instances ,etc.. i did for fix.

  • Gigatron

    The shadow not have opacity, please change "shadow fade" by "Opacity" and make with opacity you can see the background. Or maybe i not understand the shader but i tried various configurations and only can get one color for the shadow but i can't add opacity so i can't put to 50% to blend with the floor to get a real shadow.

    Also i found this weird thing around the player:

    My Shadow Config:

    My sprite is 36x36, the player is 28x28 with 4 or more pixels transparent around him.

  • I'm using "Line of Sight" plugin but the problem is that i want to use it with "visible block sprites".

    Using the Line Of Sight example on construct 2, you can see how the sprites that are not in sight are -50 opacity becase there is a black bar as obstacle.

    Changing the pig sprite by boxes, i want use Line Of Sight so the box works as an obstacle and as an sprite that if is bloqued will get 50% of opacity.

    So the problem is that how the same sprite works as obstacle as an sprite that have to set 50% of opacity if is not on line of sight all they are off because the line of sight also gets the first sprite off due is a block.

    Here the .capx

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

    I want the box has an obstacle for line of sight to block sprites behing them but no hide the sprite itself that works as block.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Gigatron

    Hi, one more thing XD

    I'm finally doing the topDown game i had in mind and already did some walls like TeleGlitch game,etc...:

    Subscribe to Construct videos now

    Can you add the camera position to the shader that we talked in previous posts? As i said the Roll-XY not worked correctly, still gives a wrong perspective to do this:

    Subscribe to Construct videos now

    (in this example uses rotation, but with Roll-XY still do some weird things)

    This will allow me do walls and other things real 3D to give a perfect feel <img src="{SMILIES_PATH}/icon_razz.gif" alt=":P" title="Razz">

    And no rush, just saying to have in mind !! And again thanks for your time/work! <img src="{SMILIES_PATH}/icon_e_wink.gif" alt=";)" title="Wink">

  • Gigatron

    No problem!

  • Gigatron

    WOW! Yes that works for me . The unique thing is the color, seems is added to the background? Maybe in my example was bad explained but the RGB color is for the shadow not the background sorry. Also Ok for the other things, already have the sprite with some transparent around it for some king of animations so seems will fit perfectly.

    Link to download ?

  • EDIT: The shader works correctly now, also this needs to be applied to the layer you want to cast shadow and will works with spritesheeting, rotations and will appear in the bottom of the sprites without overlaps due Z-Order.

    -----

    This is what i'm looking for:

    Parameters i need:

    X Offset

    Y Offset

    Opacity

    Blur

    Red

    Green

    Blue

    For example the example i posted have:

    X Offset = 1

    Y Offset = 1

    Opacity = 50

    Blur = 0

    Red = 0

    Green = 0

    Blue = 0

    Optionally add "Angle Fade-Out", to select in which angle do the fade, example image:

    Also a parameter for this to select the size of the fade.

  • No feedback from scirra? No reason or why they did it? :S

  • 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?