TwinBlazar's Recent Forum Activity

  • Is it possible in event sheet to refer to a global variable by string and get the value of this global variable?

  • I am having 2 triggers which are simply keyboard presses in event sheet, and are simply as follow:

    Upon the layout creation, Object A is created.

    When we have Object A, if the player presses 1, Object A is destroyed and Object B is created.

    When we have Object A, if the player presses 2, Object A is destroyed and Object C is created.

    When we have object B, if the player presses 3, Object B is destroyed and Object A is created.

    When we have object C, if the player presses 4, Object C is destroyed and Object A is created.

    From above, will there be any chance that both Object B and C can be created at the same time? Currently, I don't have the case of having both object B and C yet, but the tick rate is rather fast on desktop, you see.

  • Link to .capx file (required!):

    mediafire.com/download/qfqfx1idd0as2s0/pauseKeyInterrupt.capx

    Steps to reproduce:

    The capx has all the setup you need. Please run the capx. Instruction is also provided in the layout.

    Observed result:

    You have 2 event sheets. Event sheet 1 has a group "not pause" and it includes Event sheet 2 inside the group. This implies that everything in Event sheet 2 is to be disabled, should the group in event sheet 1 is disabled. The actions in event sheet 2 are disabled along with event sheet 1 when group "not pause" is disabled. However, the keyboard event still receives input. Thus, the action will be still be performed.

    Expected result:

    The expected result is that, the keyboard interrupt should not fire event to the event sheet 2, as it is include in the group "not pause" in event sheet 1.

    Browsers affected:

    Chrome: yes

    Firefox: Yes

    Operating system & service pack:

    Win 7 ultimate 64 bits

    Construct 2 version:

    r132 (64 bit)

    Workaround: currently, I simply add another condition: timescale NOT equal to 0, in the keyboard event, to prevent this to happen.

  • I have the following setup:

    2 rocks. 2 switches.

    The player has to move the rocks into the switches in order to proceed.

    When ANY of the rocks collides with a switch, the switch will become "PRESSED" state and a sound will be played.

    But there is wind to move the rocks around. If a rock left a switch, the switch will become "NOT PRESSED" state.

    If 2 switches are "PRESSED", a sound will be played and these 2 switches will stuck in "PRESSED" state permanently, even if the rocks are being moved away from the switches.

    Any idea on doing this in C2 event? I prefer having only 2 object types: the rock and the switch.

  • In the bundle along with C2 standard edition, we know Matt Oglseby is behind the music in Music folder, but there is this Ambient FX folder. Does anyone know who is the creator of these sounds? I want some sources to give proper credits.

  • Currently I am testing out performance of group in event sheet. I don't have mobile devices to test this out, but I would like to make sure that my understanding is correct:

    How are disabled groups in event treated in event sheet? Right now, I have about 30 groups, but only 1 group from these 30 will be active at a time, while the rest is disabled.

    Are groups treated like if statement like this?:

    if (group1.enabled){

    ...

    }

    if (group2.enabled){

    ...

    }

    if (group3.enabled){

    ...

    }

    Does C2 have to check whether a group is active? Or does C2 simply "remove" the events of this group out from the event sheet during execution time, and does not have to check for the group's state?

    (Why do I do this? Imagine a Kirby game which you can have many variety of forms)

    While on laptops, I don't see any performance drop whatsoever. Of course, laptop is a beast, compared to mobile devices.

    Will this reduce performance a bit, or am I just too paranoid? If it's you, how will you do a Kirby game?

  • The thing is I have an object, which exists in all layouts, and there are almost 100 layouts now, along with many of these objects in all layouts.

    Is there a way to set some attributes and apply to all objects? For instance, I want to change the opacity of every object of the same object type in every layout, how can I do that?

  • - Now the timer at Timeline plugin could use official function plugin to be it's callback.

    Sample Capx

    Your sample capx is 404. (quote is from scirra.com/forum/plugin-timeline_topic46150_post367708.html )

  • Dear Levege,

    Could you please post a sample capx so other can test?

  • Save their position? Now, that's vital to this thread. I shall give that a try. Thank you for the info.

  • I might be missing something here. Because from here: scirra.com/forum/topic66390.html , it has been stated that objects are available in all layouts.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Wait, let me get this right... I recall for objects in Construct Classic, we need to set global to objects to make some objects available in all layouts, but in C2, all objects are already available to all layouts. And global setting just prevent objects from being destroyed when we change layout, isn't it? Correct me if I am wrong.

TwinBlazar's avatar

TwinBlazar

Member since 14 Apr, 2013

Twitter
TwinBlazar has 1 followers

Connect with TwinBlazar

Trophy Case

  • 11-Year Club

Progress

11/44
How to earn trophies