tunepunk's Forum Posts

  • Hi. I have several instances of the same object, that all need to tween to a specific location for each instance.

    Whenever I start the tween only one of the objects move. How do I make all instances start tweening at the same time?

    Whevever i use a trigger or once while true, even looping through each of them, only one of them moves. Any suggestions?

  • Once in a while I get to do these fun little projects. RedRun (aka RedRunner) is a small little endless runner I was asked to do for an online shop, as part of a campaign to give existing customers something fun to do while waiting for delivery, and also in the long run hopefully generate a bit of traffic and new customers.

    The game is a pretty simple endless runner, where you play the role of Elena from the Youtube channel Agent Vegan - Youtube which is a fun cooking show set in the Soviet era, where a bored Comrade Elena is cooking in a bunker.

    You can try the game here:

    redrunner.se

    The game is still in beta, so let me know if you find any quirks. It will also be updated later on with more levels, characters, fun obstacles and other features. Hopefully also release on app stores.

    It's available to play completely free but requires you to sign up to save the highscore and participate in future promotions and win stuff from the shop at agentvegan.com

    Let me know what you think, or have any fun suggestions.

  • I put together a quick little project for you.

    https://www.dropbox.com/s/lwoo2tu9v8ide5l/touchSwipe.c3p?dl=1

    Hope that helps :)

    Added some comments as well to help you understand how it works.

  • Usually i do this by checking the angle.

    You need to create a couple of variables.

    TouchStartX

    TouchStartY

    TouchEndX

    TouchEndY

    TouchAngle

    or something similar. When touch starts you save the XY position, when Touch Ends, you save the Touch end coordinates. Then you check the save that angle from start to finish position.

    When you have the angle from start to finish, you can check if the angle is between certain values, it would count as either up, down, left or right swipe.

    At least that's the basic idea, i don't have any clean project with only that, but hopefully it's enough to get you going.

  • Recently lauched a beta little kampaign game. Works well on all platforms and browsers except iOS.

    Since it's beta we're pushing updates very frequently, sometimes a few times per day. On all the other platforms it works well, but when it comes to iOS on iPhone every time game is updated something breaks.

    Opening the game on a fresh phone it works, but a phone that has run the game before, things go heywire.

    Anyone else has this problem?, And is there any way to force the browser to use the new game and not some cashed files? It's really annoying, and I'm getting plenty of bug reports of things not working but only on iOS, after an update.

    All other platforms update perfectly and after a page refresh new version is used. iOS seems to use some old files, some cached, some new, causing a shitstorm of problems.

    Any help apreciated.

    Tagged:

  • Made this fun little promo game for an online shop. Still beta but it's a fun way to keep the customers engaged, and give some prices from the shop.

    Just pretty basic Soviet era themed endless runner.

    Have a try at: redrunner.se

    It's still in beta and going to be updated with more characters, features and maps later on.

  • It was just a thought, since someone told me iframes on mobile was not optimal. But if like you said mouse/touch get messed up with div that's not really desirable.

  • As question said. Does anyone know if that's possible?

    And if so, how do I go about doing that?

    Tagged:

  • While we are waiting for the stable document update here are the functions I see in the debugger for the JSON SDK (beta r201)

    Awesome thanks! I'll play around with it too. Very useful!.

  • Yeah it's a bit tricky to say the least. I'm doing api calls that return JSON so some way to more easily shuffle data around between scripts and C3 in general would be better.

    I'm not very good at scripting so I would prefer to do most of the work with events, after passing the data over.

  • Yes would be very helpful.

    How did you solve it so far? I also have some returned JSON data i need to load to the JSON object.

  • One solution I found is that might work is using this lib. I tried it out on a simple webpage and seems to be working so now going to test it from within Construct.

    github.com/axios/axios

    Which allows me to use xhr.withCredentials = true on requests to include the cookie data. Will be trying it out today and see if it helps. It should also work from node.js

    Ashley is it much work to the xhr.withCredentials = true option in the AJAX plugin? Is it possible to get better support for cross domain requests in the near future?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Does anyone know if scripting can be used to achieve what I want? Need to include the cookie data in future API calls after connected to host.

    I'd be happy to pay someone with the knowhow to help me out here :)

  • I'm not sure but it seems like the current AJAX plugin doesn't support it.

    The only thread I found involves modifying runtime for the AJAX plugin, but that's an old post for Construct 2.

    construct.net/en/forum/construct-2/how-do-i-18/send-ajax-request-cookies-133256

    Ashley Is this something that can be requested as a feature, or is it something that can be done, but I don't know how?

  • I'm connecting to a host with ajax and get a response back. So far so good.

    I need to find a way to add credentials to my post to the cross domain server.

    The only thing i could find was that i need to add "xhr.withCredentials = true;" to my request, but I don't know how.

    Any help?