Asmodean's Forum Posts

  • Zebbi

    https://www.scirra.com/manual/66/projects

    The properties for a project can be edited in the Properties Bar after selecting the name of the project in the Project Bar, or using the Project Properties shortcut in Layout Properties.

    Preview effects

    Whether or not to display effects and blend modes in the Layout View. If enabled, WebGL must also be enabled for the effects to appear. If disabled, WebGL effects are not rendered in the editor, and all objects are drawn as if they have Normal blend mode.

  • I don't know which Windows version you have. In Windows 7 you can turn this behavior off in the control panel, mouse properties. In the tab 'pointer options' check off 'automatically move pointer to the default button in a dialog box'.

    Now the irritating mouse behavior should be gone.

  • Maybe I understand this wrong but you can simply load a new image for your sprite in the sprite editor.

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

  • 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

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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