WackyToaster's Recent Forum Activity

  • What defenitely should work is setting the CORS origin to a wildcard

    header("Access-Control-Allow-Origin: *);

    This will allow access from ANY source. A little note from the W3 wiki:

  • Hey,

    the array is not loaded properly because AJAX is asynchronous and is not available the instant it is called.

    As for the randomized non-repeating, you could set the data from the array at random and then delete that particular row from the array so it cannot be picked again. If you need to keep the array intact, you could just use a second array with the same data.

    Also I recommend to use floor(random(1, array.height+1)). This is a must with the approch above since the array height changes. But generally it is much more convenient since if you add a row to your array you don´t have to adjust all the events accordingly.

  • every tick

    Here is your problem. You only need to pin it once (e.g. on created)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • There's a lot of web hosting and FTP though, but is there an easier way to do it?

    Hmm I don´t think so. The webhosting/FTP part isn´t as scary as it looks.

    Well maybe there is actually.

    Mailto link should do the trick. It is defenitely not as clean as having a form in game but it is the easiest way.

    Just in general, people can spam/troll with this feature if they feel like it. From personal experience, it didn´t happen actually (to my surprise). But there is still a chance you get a bad egg or two and your issue tracker will be filled with all sorts of garbage. ¯\_(ツ)_/¯

  • There you go. What happened is that the animation was reset to the idle all the time, then the run animation was started. All you needed was an extra check if the player is standing still.

    I think you can also add a "Trigger once" to it (so it doesn´t check the condition all the time, for performance sake), but leave it out if it doesn´t work.

  • First of all in your events

    dropbox.com/scl/fi/mrgmdqx1a0nx23ktc4fa2/eventsheet2.JPG

    You first POST to the php file, then you request it? That is not needed. If you POST, you will still get whatever result. In your case "Message sent at bla" So you can just wait for AJAX on "email" complete.

    Try this php

    You should get the "Email sent" back. This doesn´t mean that the email was actually sent though, there can still be an error on the server but iirc you can´t really check that unless you review the server logs.

  • If you make something akin to Sokoban why would you use Pathfinding though?

    In any case, it´s hard to say what works because I don´t know how your project is set up.

    One-ways could be done by checking "if player.X > one-way.X -> Set one-way solid, else set not solid." (This will work for a one-way only allowing you to pass from the left. Other directions need extra checks)

  • There is a chance that you start the animation over and over, instead of only once. It´s best if you make a little demo project that shows your issue.

  • Haven´t tried any of it but someone posted a nice step by step here: stackoverflow.com/questions/43046097/post-request-to-github-api

    So you would use AJAX to do all the requests.

    I personally would think of an easier way, unless it is mandatory for you that the issues are posted on github. For example, you can set up an email address that you send the bugreports to, or have a simple mysql database setup that adds a row for each new report. The coding needed for that is really basic, especially compared to dealing with a 3rd party API.

    Also I found this: fire.fundersclub.com You could use it with the mentioned send email approach and the issues will be posted on github. Haven´t tested it but it looks super simple.

  • 1000 IQ condition right here.

    Jokes aside, I like compare two values.

  • Yes, this is indeed awesome af. I hope it´s relatively easy to switch over/convert from the old functions to the new one.

  • There is a chance that it´s a bug. I noticed something similar with tiled background appearing black in nw.js in fullscreen. I dismissed it though since It was running on my 10 year old Macbook and it was already on the verge of bursting into flames just from the drawcalls.

    Can you try different devices and such?

WackyToaster's avatar

WackyToaster

Member since 18 Feb, 2014

Twitter
WackyToaster has 26 followers

Connect with WackyToaster

Blogs