Asmodean's Forum Posts

  • You have to cancel the fullscreen-mode before you switch to another scaling mode.

    Use Browser| Cancel fullscreen before you switch.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I'm not certain if I understand correctly what you think to achieve by using an array. An array is useful if you don't want to deal with a huge amount of variables or you need something that change its size dynamically. Also you can go through all elements of an array very easily. A bad Idea is to change the size of an array every tick by inserting or deleting elements. It will have to reorder the index. Depending of the size of the array it could take some time to do this.

    If you store all your Weapons by name or number in an array in the beginning and you want only to cycle through the weapons in the game, you can do this by using the index or use the 'for each element' loop to go through all weapons at once, but I wouldn't use push and pop.

  • 'abs' gives you the absolute value.

    Gloable number myVariable=-1

    System Every X seconds -> Text| Set text to abs(myVariable)

    Will give 1

  • Depth of your array has to be set as least to 1, otherwise the whole array has no size. You can see that, if you look at your array in debug.

  • I tried something. You have to set the origin of the circle better than me, and the pieces are not really arranged like a circle.

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

    With a big help from R0J0hound.

    rotating-a-sprite-by-its-middle-not-its-origin_t146141

  • Is it a problem if you do it with several parts? You could make a sprite of each part and put it together as a circle.

  • Make a right click in the event sheet where you want to execute your functions and choose 'include event sheet'.

    Then add your event sheet with your functions.

  • You could use the sine-behavior. That has an option for opacity.

  • As far as I know effects use the 'OpenGL Shading Language' not Javascript. So javascript doesn't work here.

  • Here is something that might be what you are looking for:

    I can't help you with the example. I only found the thread and thought that is what you are looking for.

  • If you click the button the focus is set to the button, because the button is a html-object. You have to click on the layer/canvas to set the focus again on it, then it should work.

  • Works for me. Here a little example:

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

  • You can't, but you can still use 'out of layout' or 'on screen' or negate 'is not on screen'. So if you want to destroy your sprite when its outside the layout/viewport you could use:

    Sprite| is outside layout-> sprite| destory

    Sprite|X is on screen -> sprite| destroy

    or anything you like to do.

  • I tried something, look if is that what your are looking for.

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

    In my example the bomb(the green sprite) has to be multiple the size of a tile (here a tile is 32x32 the sprite is 64x64). Drag an drop the sprite, then click it to delete the tiles around the sprite.

  • I like the idea and the music is nice, but for me it gets to fast to difficult. So it's more frustrating than challenging especially under mobil. The controls are more difficult and it gets way faster frustrating.

    I would consider to make rounds or levels and raise the difficulty slower.