DAG's Recent Forum Activity

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

  • You can also create a helper sprite. Just a sprite with 1px² and pin it to the sprite object you will check if overlapping.

    Then you only have to check if the helper sprite is overlapping with the other sprite.

    You know what I mean? If so your problem solved?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi,

    I can't find any perfect and complete tutorials about this subject.

    How do I use Ads and In-App-Purchase on iOS using Construct 2 and CocoonJS (or other).

    A Guide from A to Z! A video would be desirable. With full instructions about every single step.

    1. Create a App on iTunes Connect and activate iAD.

    2. Create iAP. What do I need?

    3. Create a App with Construct 2. Settings, etc?

    4. Compile with CocoonJS. (I allready have a premium account).

    4. How to test.

    etc, ...

    Summary: I quickly wan't a working App with iAd and iAp.

    To publish a free App with Ads. With the option to deactivate the Ads with In-App-Purchase.

    I would be very happy if you could help me.

  • Yes, there is a issue to the cocoonJS native phyiscs. Only the Box2D web engine works. Maybe asm to, but not tested.

    Scirra: Please clarify with ludei. thx

  • For iOS (ipa) its difficult because you need a mac with xcode.

    The Game Maker Studio for example can do this. He connect via network to the mac.

    You just have to set the ip, username and password from mac. Then the tool gets the provisioning and certificate for building the ipa over xcode and download the ipa.

    shortly: its possible. and maybe its comming soon. but currently its easy too. because you use a html5 to ios converter like cocoonjs. its very easy. But I also hope that scirra adds a official "ios compiler / Builder"

  • Some Examples? Family or not. You need for every part of the chain separately objects.

  • Plsease add a chain object or make it possible to connect instances with revolute joints. currently its only possible to connect objects.

    Also: Set both image points. from source and target.

    I want following:

    Create a instance and create a joint to a prev. created instance. Shot: Create a chain / rope.

    Thanks!

DAG's avatar

DAG

Member since 22 Mar, 2014

None one is following DAG yet!

Connect with DAG

Trophy Case

  • 10-Year Club
  • Email Verified

Progress

11/44
How to earn trophies