greenleafvt's Forum Posts

  • Yeah Just getting the browser link to blob still. Think Construct is doing everything correct but PHP or my server wants to encode everything as the local URL making it useless for emailing - as its in the local browser session. Googled a lot of writing the binary URL to a PHP file but nothing works. Creates blank PNG files. Tried reading the blob URL inline in the email img scr= and can't get that to work either. Haven't worked in PHP for years so I'm probably doing something dumb.

    Is their a way to just write the binary out in a PHP var based on the construct Blob URL and paste that into the email from PHP? Maybe its better to just give up on PHP and do with Javascript?

    drive.google.com/file/d/1sMOEn_01pg9YVZZiJ--o9rGXTCMizo2Z/view

  • TY Ashely for pointing the way!

    I'm still a little stuck on this do you mean like this:

    drive.google.com/file/d/1hrHOZQDLDliB6LT5uPHupm-KfJXFQSZU/view

  • Thanks Ashely and fellow Constructors!

    If anyone knows how long do Blob's exist? Seems like their is a window to write them into a file. Sorry new to this sort of transfer via PHP

    blob:https://preview.construct.net/3913b9dc-d856-4a3f-a67e-7fc7e80e83ff

    Can see the links now but cant get the image to decode in the PHP email.

    See screen shot bellow .... Ha

    Think some wrapper may need to be activated for the PHP settings on our server and then maybe I'll be able to save the binary to a php but so far no luck.

  • I have been having problems with sending the canvas screenshot to PHP an then emailing myself. Discovered that its working fine but its delivering a BlOb - Binary Object which I can decode manually but I also saw that their is a new draw canvas function. Has anyone figured out how to have this new function just POST to an email? or should I write a PHP script to decode the binary and from which? canvas shot Vs the new Draw Canvas would be better future thinking?

    Thanks

  • Ok I'll try to explain this situation. I know how to pick random values for a sprite and or animation frame but How would you pick a random variable if lets say you wanted to limit or filter the values to an option - lets say their is a menu and its options are colors. I'm picking 4 random colors but when RED is selected at least one of the 4 items is RED.

    I have my sets of frames all ordered the same so lets say RED is 1-10 orange is 11-20 yellow is 21-30 etc.

    Any Ideas?

  • Is it possible to skew a sprite?

    graphicdesign.stackexchange.com/tags/skew/info

  • So I would like to read the screen center X value. Any ideas on how to do this would be appreciated. Guessing that their are many ways to do this. Was sizing things based on their Y value but hope use this value to keep thing connected vs just getting smaller.

    Crude example:

    .........

    '''''''''

    *********

    XXXXXXXXX

    Vs

    . . . . . .

    ' ' ' ' ' '

    * * * * * * * * *

    XXXXXXXXXXXXXXXXXX

  • Yes using the r133 but haven't used the viewport function before so I was thinking:

    Z elevation = ViewportTop-"SpriteName".Y

    or something like that but can't get the argument to work. I'll keep messing around but not sure even if ViewportTop is the correct place to start.

    Thanks for the help!

  • How do I change a value based on distance from top of viewport (or top of screen)? I want to know the sprites X & Y value based on the distance from the top not its X & Y value in the game layout / canvas. Imagine a huge canvas which the camera can only see a small part of and that camera follows a character around the canvas so what is at the top of the screen is always changing.

    What I wanted to do with this is change the new Z elevation of sprites based on their screen position. o things as then moved in the viewport would change z elevation. Think of some old pseudo 3d racing games.

  • Thumbs up! Thanks for the advice I'll give it a shot this weekend.

  • Fisholith's system is great!

    Has anyone figures out a find to path for each block or to mouse or touch position using this system?

  • So I'm having some weird results with mirroring an object behind a multiply effect. The middle has the image not overlapping completely and you can see the background image is loading the correct direction but goes in revers when it is covered like in the other image. What could be causing this effect?

    Guessing its the on overlap function but how can it be fixed?

    drive.google.com/file/d/1PyuX-mKy704IQqMOfnkm9q0gNipkfAde/view

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • OK I'll try that. I'll see if I can fix it in a simple version. I stripped down the 36 other layouts in the on the project to post this problem but their are lots of "leftovers" - sorry about that. Thanks for taking a look.

  • Thanks dop2000

    So this should probably be a new thread but I tried moving the top right charm_multiuply and its loading the right image however if you look at the bottom right bird its as soon as the multiply covers the correct image it flips the displayed image back. Is this an error in construct. Has anyone else experienced this?

    Updated CAPS

    drive.google.com/file/d/18GHbtNOVJTcQ7y4ZNo6p7MRL7UGwjg1x/view

  • "This is one of the most popular questions here"

    Yeah I have have had problems with it a few times :)

    Figured some of it out. Thanks Dop2000. I Think using IID is not the best practice. Ended up passing some variables through another holder sprite. And it works however I am getting a weird result with mirroring the color sprite I was using underneath the "charm" Seems like even when mirrored it wants to display in the other direction as well and You get this weird image ripping effect.

    See the attached picture:

    Also what would be a more elegant way of doing this:

    drive.google.com/file/d/1h77J33J8Omd9qe1rD_EupFdYRkJpHBuo/view