Asmodean's Recent Forum Activity

  • You will have a little experience in php to get this work. However to load a xml-file from a server:

    You have to put a php-file and the xml-file on your server.

    myphpfile:

    <?php
    header('Access-Control-Allow-Origin: *');
    $str = file_get_contents('myxmlfile.xml');
    echo $str;
    ?>
    [/code:5hl2n2i3]
    
    in C2:
    [code:5hl2n2i3]
    System| On start of layout-> Request "http://myserver.com/myphpfile.php"  (tag"getxmlfile")
    AJAX| On  "getxmlfile" completed -> Load XML document from string AJAX.LastData
    [/code:5hl2n2i3]
    
    Now after you loaded your xml-string in the Construct2 XML-Object and can parse it or do what you want.
  • The example doesn't work ,because there is an access violation. Only the access from one specific server is allowed. You can see it yourself if you press F12 in your browser(Chrome, FireFox) an look at the console.

    You have to use your one sever with php to test the example.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Ah, now it makes sense. Thanks blackhornet for the explanation.

  • Change your:

    Enemy|Spawn ExplosionDecal on layer("BG")

    to

    System|Create object ExplosionDecal on layer("BG") at (enemy.X + ViewportLeft(0) - ViewportLeft(1), enemy.Y + ViewportTop(0) - ViewportTop(1))

    with the layer: BG

    X-coordinates: enemy.X + ViewportLeft(0) - ViewportLeft(1)

    Y-coordinates :enemy.Y + ViewportTop(0) - ViewportTop(1)

    I think there a commands for that like CanvasToLayer or LayerToCanvas but I don't get it to work. Maybe someone with more experience can help with that commands.

  • You do not have permission to view this post

  • If you use 'request full screen', it should full screen whatever resolution you use. If you mean you want no black borders, that's about the aspect ratio. If all resolution you use have the same aspect ratio you will have no problems.

    Ashley wrote a nice tutorial about that:

    https://www.scirra.com/tutorials/73/sup ... reen-sizes

  • Don't use the physics-behavior with other behaviors like bullet, solid or rotate. If you use the physics-behavior, make all with the physics-behavior.

    Please have a look, it works but I think you have to tweak the values a litte bit more.

    https://drive.google.com/file/d/0B5FlDY ... sp=sharing

    I found another problem with the group loops. It took so much cpu usage. I changed that too but, I think it would be better to make a sound and play it, instead of trying to alter the sound.

  • I don't think it's possible to open a cap in C2.

    Here is CC:

    https://sourceforge.net/projects/construct/

    http://www.scirra.com/construct-classic

  • I don't know if I understand you correct. Sorry if isn't what you want.

    If you want the first sprite of several instances of this sprite, I would use the IID not the UID. The IID is a number in ascending order number starts with 0 for the first sprite.

    You can then easily access a sprite with a definite number with the condition 'pick nth instance'.

    For example the first sprite with IID=0:

    System| Pick Sprite instance 0

  • Something like that? I'm not sure if I understand you correct.

    https://drive.google.com/file/d/0B5FlDY ... sp=sharing

    I' not quite happy with that, but maybe an idea for you. For a better solution you have to wait for korbaach

  • Is a known bug:

    Use another key instead of space, then it should work.

  • Maybe you can do it with an ASCII-Table and the key-codes.

    I made a little example:

    https://drive.google.com/file/d/0B5FlDY ... sp=sharing

    It doesn't scroll or delete lines, if the textbox is full you don't see any more commands.

    If you want more characters for input you have to extend it yourself, at the moment you can only use letters and numbers.

    Use this ASCII-Table:

    http://www.chip.de/ii/1/2/5/4/9/5/8/0/a ... 9f26b0.png

Asmodean's avatar

Asmodean

Member since 31 Jul, 2015

Twitter
Asmodean has 9 followers

Trophy Case

  • 9-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Popular Game One of your games has over 1,000 players
  • RTFM Read the fabulous manual
  • Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

15/44
How to earn trophies