WackyToaster's Forum Posts

  • The build in plugins work fine. It depends a little on what kind of game you have and how aggressive you want to push out ads. Just regular banner ads work fine, rewarded ads can be really good if you have something to offer the player as a reward. Make sure it´s something they want over and over again (like extra money) One thing you often see is a fullscreen ad on game over (not every game over, but probably every 2-3 game overs) fullscreen ads are a bit too aggressive for my personal taste, so I went with a simple banner ad.

    But rule of thumb, you mainly get paid for impressions (aka views) so make sure that ads show up often enough but not too often and not too aggressive.

    I´d say just take the plunge, try stuff out and make your own experiences. The returns are very minimal unless you have a huge playerbase. Expect returns of a couple of cents. That´s at least what my experiences are so far. Oh and if you have a really good game with good ads going, I can also say putting out ads with google works really well.

  • Well you could always send a mail to the 000webhost support and ask them, they probably know best if they support it. If their free plan doesn´t cover it, their paid one might. Or find a different free host that does allow php mail.

  • Ugh...

    Step 1: Chill

    Step 2: How is your progress saved right now?

    Step 3: Do you absolutely NEED to update the runtime?

    Step 4: If Step 3 is yes --> There are very likely solutions for your problem, you don´t have to write an essay about it

  • Be aware that there will always be a little delay when pressing the button only once. You need a small time window to check if the button is pressed again.

    I think there are better options that don´t involve that delay though.

    wackytoaster.at/parachute/doubleTap.c3p

  • What version of C3 are you using? Can you post a screenshot of your code? Otherwise it´s hard to debug anything.

  • You can use the angle expression.

    angle(sun.X, sun.Y, planet.X, planet.Y)

  • Events get evaluated from top to bottom every tick(frame)

    In your case, jumping only works because it is placed on the bottom, if you were to place it on top it would also not work. What happens with your attack is likely that you press the button, attack animation starts playing and the next frame the player is "idle/moving/jumping" and the animation is overwritten.

    There are different ways to handle it, for example, you can check if an animation is playing. So you could check "is animation attack NOT playing" and only then you switch it to move/idle.

    I personally prefer to use a state machine, basically an instance variable on the player. Then you set this variable to a definitive state like "falling, jumping, attacking, crawling, dead" And based on that state you set the animation. This prevents overlaps like you have happening where a player is attacking AND idle.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • the procedure to complain about is extremely complicated

    Github is for reporting bugs, not complain about them. If you wanna complain, I recommend the forum. Just be aware that complaining will not help solving the bug.

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

  • 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/s/ohsnhhblm0qxrzl/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.