DAG's Forum Posts

  • you don't want that the spawned sprites are overlapped?

    One solution:

    on creating / spawn the objects (sprites) you can check if overlapping. If so, then move the sprites randomly again. in a loop (while(!overlapping)).

  • Don't now ^^ But alternative: Create you own debug functions. For example. create a new layer on top and add some text-objects etc. (create a global variable for debugmode enabled or nor). etc. ... What you exactly want to debug?

  • Hmmm, try to update your IDEs / SDKs (xcode, etc). Also: Try to compile your project with different engines on cocoonJS.

    2.0 beta is not available. ... At last: post your issue on the ludei forum.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Yes "pause on unfocus" only works during preview.

    What you mean exactly? You want to stop the audio when the game is not on focus?

    The audio is automatically stop when the page / game is not on screen (minimized / unfocus).

    Regardless the "focus on" is activated or not. (in my case)

  • You can build a javascript plugin, or modifier your exported game / app. Just a idea.

    There are many tutorials who explain how to upload an avatar on your own website.

  • Have you tried to create it new? And delete the other one.

    Or change the width to another value and reset to the previous value.

    You need a event when device orientation occurred.

    For more support: Upload a example project or screenshots, etc.

  • Hi,

    heres a lil suggestion: when clicked on "guess polygon shape" the user can set the point number for the algorithm.

  • Thanks but no solution works. :/

    KennyOops:

    [quote:2x8brscn]1. Via php script get the remote image binary datas, and save it to local server as jpg or png etc.

    2. Use sprite's Load image from URL to display that image.

    I need some source code please.

    My server webspace tree:

    Folder > Files

    root > index.php

    root\content > image.png

  • Soooo, now I have another nearly same issue. Image! Images have no header. So it can't define as cross domain. But how do I load a image url to a sprite cross domain?

  • Hi there,

    does anyone know how to change the User-Agent String?

    [quote:1h6s1okg]

    UserAgent

    Return the full user agent string for the browser, e.g. Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.912.63.

    I know that the browser can change this. Also CocoonJS has a own string.

    But how can I change that for my game?

    I need this for authentication on the Internet.

    I just want my game name and the version. To Ashley and Tom. Please add this feature. Thanks.

  • Hi,

    The Construct 2 Example "Multiplayer Chat" is connecting to "wss://multiplayer.scirra.com". Works fine.

    But I want set up my own wss. How? What do I need? I have a own Website, hosted at a webspace.

    Whats wss? And: Can I do this also in php, javascript, etc. on my website?

  • Ok thx.

    Solution:

    PHP:

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

  • Hi,

    I read the manual about AJAX object but I don't understand this completely.

    How do I use AJAX to download the content from my website?

    I have a php website and write some data with echo and can request this with parameters in url ($_GET["var"]).

    Works fine with other dev programs. But with contruct 2 and AJAX browsers block requests across domains.

    The manual says:

    If you want AJAX requests to your server to work from any domain, or in preview, you can configure it to send the following HTTP header:

    Access-Control-Allow-Origin: *

    Can you help me, please? Explain with an example?

    For the first I just have a text and ajax object. ajax request a url and load the lastdata in the text object.

    On the same domain / website its works. But not on localhost or others.

    PS: I develop for iOS. And want this feature.

  • You can also move the object directly over Set_velocity(x,y). Just set the distance beween self.x/y and touch.x/y multiply with force

  • Use physics forces! When you use the drag'n'drop behavior you move the object direct to the x and y position to the touch position. So the physic collision is can't work correctly. Because it instantly move to this position every tick.

    Drag'n'drop is a really primitive feature. Its better you create your own movement with events.

    Example:

    1. Add a Variable to you player object named "move = 0".

    2. Go to the Event Sheet 1 and Create a Event "On Touched object" Sprite2 (Player).

    On this Event: Set the variable "move" from player object to "1".

    3. Create a "On any touch end" and reset the variable to "0".

    4. Create a Event "Compare instance variable" of player object if "1".

    5. Now you can add a physical force. For example:

    "Apply force towards position"