eli0s's Forum Posts

  • Oh man, tulamide thank you so much for sharing!!! This is a very elegant solution, I couldn't thought it even in a decade <img src="smileys/smiley9.gif" border="0" align="middle" />

    Thank you again sir <img src="smileys/smiley10.gif" border="0" align="middle" /> <img src="smileys/smiley10.gif" border="0" align="middle" /> <img src="smileys/smiley10.gif" border="0" align="middle" /> <img src="smileys/smiley10.gif" border="0" align="middle" /> <img src="smileys/smiley10.gif" border="0" align="middle" />

    <img src="smileys/smiley4.gif" border="0" align="middle" />

    Elias

  • I guess that you tried the "letterbox scale"

    This has to do with the dimensions/ratio of your project. Construct won't stretch a square project (let's say 512,512) in to a wide screen rectangular shape like 1280,720 (16:9).

    It will stretch and fill the height (512px -> 720px) and it will leave 256 pixels of black borders to the left and right of the project (1280-768=512/2=256), in order to keep the square proportions.

    If you try "scale outer", construct will fill the black areas with content from your layout, some times though this isn't desirable because it messes up with the framing of your project, and by framing I mean what things you allow the user to see or not with the window dimensions.

  • +1

  • tulamide

    Wow! Awesome! I'd really like to see the capx too! Could you share it with the rest of us? <img src="smileys/smiley9.gif" border="0" align="middle" />

  • christina

    My god<img src="smileys/smiley3.gif" border="0" align="middle" />! Thank you so much for the example capx, it clarifies so many things!!!

    You're wonderful, I'll try to implement this solution in my project, replacing all those flipped sprites, masks, etc, with canvas!

    Again, thank you Christina!!! <img src="smileys/smiley32.gif" border="0" align="middle" />

    Elias

  • christina,

    I wish you could figure out a way to do real time reflections (in a simple and elegant way like you did the refractions) and share it with us <img src="smileys/smiley14.gif" border="0" align="middle">

    Right now I can't figure out a way other than duplicating sprites, mirror them vertically and masking them to gradually hide the edges, which is really inconvenient and only works with still objects...

    There is the canvas object that can achieve some interesting results, but its implementation is too complicated for my simple brain.

    At this post, NEVES is demonstrating an excellent example, but he keeps his magic a secret :(

    Again, thank you again for sharing your effort!

    Elias

  • Ashley

    +1

    A practical example:

    I want to make a bumpmapping effect, I have all my textures ready in different frames within a sprite (frame 0=DiffuseMap, 1=NormalMap etc) and I want to copy/paste all the "normal" instances on a different layer with the bumpmapping webGL effect, at the exact place that the "diffuse" instances are. Selecting all instances and pasting them manually requires a lot of nudging to get them in the same place, which is inconvenient when you have a lot of sprites all around the layout.

    Alternatively, a duplicate layer option (with all it's contents) will suffice and I see that there is already a request for that on an other post

  • Xionor

    thehen

    ramones

    Ashley informed me that the problem that I describe in this topic is fixed with the r143 release and I can confirm it.

    Thank you again for your input,

    Elias

  • Try Construct 3

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

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

    Yes! It works just as it should now!

    I'll update the original post, adding the new results that version r143 gives!

    Thank you so much!

    Elias

  • Thank you! I've learned something very useful and beautiful today!

  • jobel

    To be honest, I think blackhornets way is more robust, since you don't have to write down every last name of the sound files you want to use.

    The "choose" method is easier (I think) if you have a few files.

    Also, it doesn't restrict you with naming/prefixing the audio files in any particular way, since you call them individually by their full name.

    Performance-wise, I don't know which is faster...

  • jobel

    You can also use the "choose" expression.

    Make sure you select the "Play(by name)" action, set the folder in which the audio files exist within your project and in the "Audio file name" field write something like this:

    choose("gun1", "gun2","gun3")

    Construct will play the above 3 audio files at random every time you trigger the action.

  • NECROKRIEG

    Glad I could help!

  • My initial, non clever, reaction would be to put the photos and all the stuff you want to be framed correctly on a layer with the parallax set to 100,100.

    I guess that you have your reasons for not doing that though...

    Perhaps those new expressions that were added with the r141 Release (System expressions: LayerParallaxX(layer), LayerParallaxY(layer)) will do the job, if only I know how to use them <img src="smileys/smiley36.gif" border="0" align="middle">

    Maybe someone with more experience and knowledge can give a practical example on those expressions (if it applies at all with what you have in mind)...

    Best regards,

    Elias