Asmodean's Recent Forum Activity

  • It's hard to say more without knowing your capx. Maybe you set the animation frame in another event too but I can only guess.

    This is my example and you could see that it worked without problem. You have to hit the squares 5 times then it will change the colour.

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

  • Works without a problem for me. Check if only the hp of the one family member that is attacked is subtracted and not all.

  • You can avoid selecting the TexBox by simply unfocus it when you drag the sprite:

    Sprite| DragDrop is dragging -> TexBox| set unfocused.

    But the TextBox is always above the game canvas, so you will drag the sprite along behind the TextBox.

    If you want to avoid that, you have to make your own TextBox.

  • [quote:21xm5f4h]

    Thank you VERY much

    No Problem, but use 'save game' with care. Use it only with events that trigger (green arrow), otherwise you can get side effects like lags.

    If you have objects that are not to be saved, you can use the 'not save' behavior.

  • The easiest way to achieve that is with 'save game'.

    You could for example trigger the 'save game' with 'On DragDrop drop'

    TextX|On DragDrop drop -> System| Save game to slot "position"

    and load it in the 'on start of layout' event.

    System| On start of layout -> System |Load game from slot "position"

    The whole thing would be much easier if you use only one text-object and instances of it not so many different text-objects. Now in this example you have to trigger 'save game' with every text-object.

  • Look if this example works for you:

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

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

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