Joannesalfa's Forum Posts

  • Kyatric Thanks, i'm going to use it.

  • Kyatric this is a solution i've found about php script would return an image. (Are you making assumptions?)

    http://stackoverflow.com/questions/4494704/return-the-contents-of-an-image-in-php-file

    This .capx can get an image and it worked, but i wanted to change from Load URL to AJAX to get progress, in this case it didn't work.

  • Bump

  • No WebGL effects...

  • Hi guys, I wanted to use AJAX method to get progress time instead of Load URL image from Sprite, it didn't work to me.

    CAPX

    There is my PHP script:

    <?php

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

    header('Content-Type: image/jpg');

    readfile('http://flamma-beta.com/HTML5/asuka.jpg');

    ?>

    Any ideas?

    Thanks!

  • Nice one! I can't wait. :)

  • Good one! I will participate this

  • Is this method supported by CocoonJS? I think with the last update they added support for this (Full native XmlHttpRequest (AJAX) support.) but I'm not sure.

    Xavier Yes AJAX it's supported on CocoonJS :)

    Make sure to set CORS (Cross-Domain Control)to hosted files before to get them in CocoonJS launcher.

    Unfortunately, CocoonJS doesn't support XML object.

  • You do not have permission to view this post

  • You do not have permission to view this post

  • There no option about locking objects, the layers are unique solution...

  • Thanks for your consideration!

    AJAX is called "Asynchronous JavaScript and XML" It can relate to XML where to get the values from any place.

    I would explain you again in different way...

    This .capx is basic one how to use XML, if you see:

    <ball category="RED">

    <count>4</count>

    <speed>200</speed>

    </ball>

    Ball Category RED, i didn't implement an event to pick "Category", it's an idea where to pick an object.

    Count is 4, it means it could spawn 4 balls, if you change 4 to 10, it will spawn 10 balls.

    Speed is 200, it's currently bullet speed for red balls.

    If in case AJAX fails, you can add extra events to default values.

    I hope you master XML.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • AJAX is used to get a xml file in wherever.

    Didn't you see a xml file in files folder? it's very easy and it's weird anyone couldn't understand my .capx

    Try to run preview, then open aj.xml in C2, change the numbers to balls and speed whatever you want, then try to refresh browser (do not click preview again in C2) you will understand.

    It would work with levels if you try to experiment. Dictionary is just a database of values.

    It's designed to update the game WITHOUT editing in C2. Especially for anyone who don't have C2 can edit the game.

    I made a post to you according to this thread title "XML for complete noobs" my .capx will explain you how XML works.

    Sincerely, if you really want to learn how to use XML, then the result is your ignorance seems rude, i wouldn't to help you again.

  • Didn't help you my .capx? i think my post is ignored here.

  • You can't scale Tiled Background. You have to resize in image editor.

    Otherwise, create a new layer for unique tiled background so you can zoom to make it looks like scaled. That's all.