dop2000's Forum Posts

  • I bought C3 license yesterday and spent about 10 hours editing a big(ish) project - 55Mb, 1000 events.

    I must say, it was not a pleasant experience.

    1. It CRASHES!

    Chrome is constantly running out of memory and dying with that stupid "Oh snap!" message. This often happens when I'm trying to open a big layout. I have 8Gb of RAM, how much more does it need?

    Desktop C3 version is no better.

    After I repeatedly lost 20-30 minutes of work, I started saving my project after every change. And this leads to the second problem:

    2. Saving.

    Internet in my country is slow, especially for uploads. Saving 55Mb to a cloud takes 5-10 minutes, so it's not an option.

    Saving to a local file is really annoying! You need to press Save, confirm save dialog, wait 1-2 seconds until the file is downloaded, select save location, rename the file, confirm.

    In C2 you simply press Ctrl-S and that's it.

    3. Keyboard shortcuts.

    I've been using C2 for two years and naturally developed a habit of pressing Ctrl-F4 to open Debug Mode or Ctrl-W to close a tab.

    I shut my C3 window about a dozen times yesterday! Desktop version can survive Ctrl-F4, but still closes if I press Ctrl-W.

    Debug Mode is one of the most frequently used features in Construct. And now it takes 3 clicks to access it!

    Menu -> Click -> Project -> click -> Debug -> click

    Arrgh...

    4. Other browser-related issues.

    Event dialogs sometimes lose focus. Pressing Backspace sometimes causes Chrome to display "Press alt-left to go back" instead of deleting last character. These things are rare, but still happen.

    5. Built-in editor for files is a nice new feature, but some keyboard combinations don't work there, for example Ctrl-Right, Ctrl-Left.

    This makes it hard to edit long lists of values.

    6. Interface.

    This is just my preference - I like thin window borders. C3 windows are so bulky...

    I really hope Scirra will continue to support C2 and not retire it.

    As with all these issues I don't think C3 will ever become a good replacement for me.

    EDIT from 23 Feb:

    I'm a bit of an idiot.

    Just realized that I've been using "Desktop shortcut" created from Chrome and thinking that it was the "Desktop build".

    (I did download the Desktop build, but forgot to add a shortcut to it)

    Can confirm that the real Desktop build works better and doesn't have some of the issues I mentioned above.

  • That condition is correct and it should work.

    You can add some debug output (for example Browser->Log PlayerInput.Moves & " " & PlayerInput.AsJSON) to see what's going on.

    Or run your game in Debug Mode and check the contents of the array and its instance variable.

    Also, there are a few plugins that you can use to detect combos, here is one from Rex:

  • Are you using Timer behavior? You can add it to the LightSwitch for example.

    Player on collision with LightSwitch -> turn light on; LightSwitch start timer "TurnOff" for 5 seconds

    LightSwitch on Timer "TurnOff" -> turn light off

    If you collide with the LightSwitch again while the timer is still running, it will be restarted for 5 seconds again.

  • Make a sprite with a gradient fill - transparent on the left and opaque on the the right.

    Put this sprite and your text on the same layer, set "Force own textures" in this layer's properties. And apply Destination Out blend mode to the sprite.

  • You can do this using blend modes.

    Put two sprites (main sprite and the black "hole" sprite) on the same layer, set "Force own textures" in this layer's properties. And apply Destination Out blend mode to the "hole" sprite.

  • And I gave you two possible reasons why this could be happening. If your entire group is deactivated during the very first tick when layout is opened, then all "On start of layout" events in it will not be triggered.

  • abdalghani , he meant microphone input, not audio playback.

    I can't get microphone to work in Chrome, it keeps blocking access to it..

    TheSynan

    Have you tried starting new project and selecting "Microphone input" example? There is a sprite that's getting bigger/smaller depending on microphone volume. You can easily change it to sprite movement.

  • First, your array structure should be like this:

    X0,Y0 =Name1 (this element can also be referred as X0)

    X0,Y1 = Spec1

    X0,Y2 = Spec2

    X0,Y3 = Spec3

    X1,Y0 =Name2 (this element can also be referred as X1)

    X1,Y1 = Spec4

    X1,Y2 = Spec5

    X1,Y3 = Spec6

    To pick random name use this code:

    variable r=int(random(array.width))

    Text1 set text to "Name: " & array.at(r)

    To loop through all specs for this name:

    For y=0 to (array.height-1) -> Text2 append text array.at(r, loopindex) & " "

  • Ok, then try this:

    Character is overlapping Sprite -> Sprite set opacity to 100

    Else -> Sprite set opacity to 50

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Touch is touching object Sprite -> Sprite set opacity to 100

    Else -> Sprite set opacity to 50

  • Here is a demo I made using R0j0hound's example from some other post:

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

  • No, quite the opposite.

    If your parent event is "animation has ended", and in the sub-event you check if objects are overlapping, then overlapping check will not be performed while animation is playing. So it will have zero impact on performance.

    It's the same situation with "On collision" event, however since "On collision" is a triggered event (it only lasts for 1 tick), you should be careful when using it in sub-events.

  • The easiest solution would be to simply move all other "On start of layout" events out of the "Game Engine Pausable" group.

    Or you can investigate why this group becomes deactivated when layout starts. It's hard to tell by these screenshots, but I'm guessing some event momentarily sets InGameMenu to 1.

    Or if you are switching to this layout from some other layout, it's possible that this group is already deactivated when layout starts. Add this to your event #1, it will tell you if the group is active on startup or not:

    Is group "Game Engine Pausable" active -> Browser Log "Group Game Engine Pausable IS ACTIVE"

  • Instead of the Persist behavior try setting your player as Global object. Also set Global for all its dictionaries.

    You'll need to remove the player instance from all other layout except the first one.

  • I'm now not sure what did you mean by "add score using lerp"?

    Do you want to animate the score?

    See this capx:

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