Magistross's Forum Posts

  • After a few more tests, it seems that changing the width of an object glitch its mirrored flag, and changing the height glitch the flipped one. "Is mirrored" and "Is flipped" still register has "true" but they don't appear mirrored/flipped. Definitely not a wanted behavior... In the meantime, here's a capx with a workaround.

    https://dl.dropboxusercontent.com/u/700 ... round.capx

  • Just tried to see for myself. It's most definitely a bug, the "mirrored" flag has no effect while a Sine set to "Width" is active. I believe the same would hold true for a Sine set to Height and the "flipped" flag.

  • You can set local variables to "static" so their value persist.

  • You might want to take a look at this plugin I made.

    An invisible tilemap with small enough tiles could probably work for a point'and'click game.

  • funcooker

    There are basically two way to handle the dialogue initiating. You can either load the DialogueData array before each dialogue with JSON (preferably pre-loaded) and then call the "Dialogue_Start()" function with no parameter on any event of your choice. Or, you can use the DialogueDictionary, pre-loaded with JSON data, and use the "Dialogue_Start(key)" function, with key being the name of the dialogue to start, the DialogueData will then automatically be loaded with the data associated to that key from the dictionary.

    Here's a very basic screenshot of an example using the DialogueData array.

    You should usually pre-load the data though, and store it so you don't have to go through the AJAX routine to start a dialogue. Or simply use the DialogueDictionary method, only one AJAX call is needed in this case.

    There are also a few other considerations to have. The default layer for the system is "HUD", so you need a layer with name in your layouts, otherwise nothing will happen. If you have scrolling in your layouts, then the HUD layer should also have correct parallax settings so that dialogue still appear wherever the screen is scrolled to.

  • I think you misread his question a bit R0j0hound. The duration he stated are for forward momentum only. There is no talk of arcing duration nor speed, he should probably specify those as well to get a better answer.

    I'd say set a timer on each bullet and start arcing when the forward movement is done, by applying a "rotate toward angle" action every tick as R0J0 said. (with an angular speed yet to be determined)

  • FYI, the Browser object has direct access to Javascript via the "Execute Javascript" action and the "ExecJS" expression. You could make use of the "ExecJS" instead of taking the extra step of using the CSV plugin.

  • It's important to have the "simulate jump" on a repeatable event, something like "Key is down", and not a trigger like "Key is pressed".

    edit: well, looks like I was ninja'ed by the OP!

  • A cheap and quick way to tackle the problem would be using a Regex to replace variable with their actual value and then pass the expression to javascript's eval function.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Well, you could use JSON to store a sub-array in another one. However, you won't be able to easily access its values once stored. You would need to load it in a "temporary" array, edit it, and store it back as JSON.

  • Honestly, this would have been easier if this was located in the dictionary... like event from dictionary for each key, sub event from dictionary compare current key value... That would have made navigating it easier

    I rightfully agree with you. It's weird that the object expose the expressions "currentkey" and "currentvalue", but only expose the "Compare current value" condition.

  • I don't understand your rant, this is something easily done in Construct.

    For each key in Dictionary

    +Compare two values : Dictionary.CurrentKey == "something"

    -->Do something with the value at this key

  • The "else" construct could have worked too, but it should have been looking like this :

  • Here's a modified version. I hacked here and there in the existing code and plugged the ExecJS on a "Save Dialogue". It worked correctly when I tested it.

    https://www.dropbox.com/s/2b7mgmlayk4c1 ... .capx?dl=0

  • MadSpy Thank you but it won't let me use that expression when I want to set the frame. It tells me it has to be a number :/

    There's a typo in MadSpy's answer. It's missing a closing parenthesis :

    set animation frame= int(mid(str(score),2,1))