dop2000's Forum Posts

  • On the top bar click View and then check "Properties bar"

  • You can access variables by their string name using scripting, but I don't think the same is possible with any expressions.

    You will need to invent some way of encoding these expressions into JSON, and create a parser for them.

    For example,

    {requires: "InventoryDic,Banana,3"}
    

    or

    {requires: {type: "dictionary", name: "InventoryDic", key: "Banana", val: "3"}}
    

    Then you can have a function which reads and processes this data.

    Say, if the type="dictionary", then you pick an instance from the AllDictionariesFamily with the object name="InventoryDic", and read the key "Banana" from it.

  • You can use Apply Impulse At Angle angle(mob.x, mob.y, self.x, self.y)

    Also, using Physics and MoveTo with the same object may cause problems.

  • You should add some punctuation marks, it's difficult to understand you.

    If you are using Physics behavior, you should avoid setting object angle directly.

  • It's entirely up to you. Global variables are easier to deal with, but may become difficult to manage if you have lots of them.

    You can have a mix of both. For example, I prefer to keep some values in the dictionary (say, game settings). And others, which are frequently used, in global variables.

  • Can you post the entire event sheet or your project file? It's difficult to guess what is wrong without seeing the actual code.

  • I'm not sure how to upload image to the server. You can't just save it, because the game is run locally on user's machine, not on your server. You'll probably need some PHP script which will actually write the file, but I don't know how to pass binary data to it. Try searching on stackoverflow

  • .

    This will only work in a desktop game. In a browser game you don't need any of that, just use Browser Invoke Download CanvasSnapshot

  • I don't know if it's a typo on your screenshot, maybe you have the word "resource" spelled differently in the instance variable and in the condition. "ressource_description".

    If this is not the case, try running the project in Debug Mode and check all instances of the Text object.

    Also, instead of "Pick By Evaluate" you can use "Text Compare Variable" condition.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • If your audio files have just numbers for names (1, 2, 3 etc.), then use str() expression:

    Audio Play By Name str(Sprite.AnimationFrame)
    

    Also, AnimationFrameCount is the quantity of frames. You need AnimationFrame.

  • What you described is a very complex and inefficient method. You only need one sprite, not 8. Here is a much easier way:

    dropbox.com/s/9wmlzeyrugtr17w/HP_Display.c3p

    If you need different images for different lightbulbs, you can add them as frames, and set animation speed to 0.

  • There may be some modal dialog which you need to close. Or you can try a different browser.

  • Ashley says this is by design:

    github.com/Scirra/Construct-3-bugs/issues/4530

  • Use AnimationFrame expression.

    BlackBar is overlapping Sprite -> Log set text to "Frame:" & Sprite.AnimationFrame
    

    If the bar is overlapping two sprite, you can use "For each Sprite" loop.