dop2000's Forum Posts

  • You are setting the vector to (player.Y-750), which means that it will be different depending on the player Y position.

    The vector essentially means "speed". Simply set it to -750

  • That's what I've been doing so far. Do you have any specific sites to make this easier on a per-language basis? Maybe sites that have the character-set as comma-separated values or in a different list format.

    Unfortunately, no. Just using the best result I can find in google..

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You won't be able to create spritefonts for languages like Chinese, because they have tens of thousands characters. Japanese is possible, but only for the hiragana and katakana.

    If you need a universal object that supports lots of languages including Chinese, you will have to use Text object.

    I usually just google the alphabet for a particular language, copy/paste it into Word, use Find/Replace to remove all unnecessary characters like spaces. Shift+F3 to change case. And that's it.

  • There are several addons for working with JSON in C2. I would advice learning JSON since it's easier and more popular than XML.

    construct.net/en/forum/construct-2/addons-29/plugin-json-75330

    construct.net/en/forum/construct-2/addons-29/plugin-json-114772

  • You can use global variables to save the state and position of the player.

    Also check out this demo:

    howtoconstructdemos.com/a-system-of-doors-portals-to-travel-between-layouts

  • for some reason even tho changing the ability states has nothing to do with wheter the animation plays,it still gets interrupted and refuses to play.

    How do you change the ability state? Do you need to click something with the left button? This would explain why the timeline is restarted.

    A simple way to test this is to add "Browser Log" action to your event #84.

    I am surprised you have such a big complex project and not using console logging - the most basic debugging tool.

  • I have a paid template, check it out (click Demo C):

    construct.net/en/free-online-games/random-level-generator-25484/play

    Please be aware that the dungeon layout is fixed (the number of rooms, their locations and entrances). Only the rooms are randomized.

  • I actually reported several similar issues with the dark theme as bugs and they were fixed!

    github.com/Scirra/Construct-bugs/issues/6155

    github.com/Scirra/Construct-bugs/issues/5908

  • Yeah, you never know which of the two instances will trigger the collision. That's why I suggested to use a function.

    You compare the speeds, and based on the result call the function using either instance A or B as the "active" one.

  • This is odd. To me exFrames=2 looks the best, the future sprite is mostly synced with mouse cursor. At exFrames=1 the red sprite is lagging a bit, but 3 and 4 is definitely too much!

    But there's definitely something weird going on. When I try to record the screen with OBS, it captures two cursors! The "phantom" smaller cursor is usually ahead:

    I'm guessing Windows or Chrome (or both) does something to smooth/enhance the mouse movement. Perhaps it works differently on different machines, DPI, frame rates etc..

  • I don't know of a smarter way.

    Use "Sprite On Collision with Family" event. Inside it compare their speeds using the distance() expression. Based on that - spawn a new element.

  • You can create a function Craft, which will take two arguments - active element and passive element.

    On collision, compare the speed:

    If A.speed>B.speed, then call Craft(A.animationName, B.animationName)

    If A.speed<B.speed, then call Craft(B.animationName, A.animationName)

  • Ok, but I imagine the logic is still the same - the first event picks the active instance. The sub-event picks the passive (overlapping) instance.

  • - water poored on fire = coal

    - fire thrown on water = steam.

    How do you know which item in the pair is thrown on another item? If you use Drag and Drop behavior, then in "On Drop" trigger you will have your active instance picked.

    Element On Drop <- this Element instance is active
    Element is overlapping Elements-Fam <- this Elements-Fam instance is passive
    

    Is this what you are asking, or did I misunderstand the question?

  • I'd like to be able to convert the JS code into C# for me to analyse.

    This is a bad idea. Compiled code will be very different from the original project code (events), and will be heavily obfuscated. You will not be able to make any sense of it.

    And Construct visual programming language is pretty unique, it won't translate into any traditional programming language.

    Your C# experience will definitely come handy, but don't waste your time trying to convert C3 code into C#. Just study a few tutorials and examples and try to create a simple game.