c4sp3r89's Forum Posts

  • try using tile background?

  • Condition:

    -On touch "Object"

    --Object pick top most (Under "Z order" category)

    Actions:

    -Object Destroy

  • zenox98

    Sorry. I miss out the explaination for part 4.

    4. Click undo. (Alternatively, you can press ctrl+z)

  • I see. Sorry for the lack of information.

    zenox98

    1. Select the whole group by clicking group.

    2. Right click on the group and click replace object. (Alternatively, you can press 'r' while the group is being selected.

    3. Replace Sprite to Sprite2.

    4. Undo

  • Tried r154 also. Still crash.

    zenox98

    did you select the whole group to replace the object? Not just the event.

  • try reading:

    scirra.com/manual/75/how-events-work

    Basically all sprite are given a UID. So it you want to destroy the specified sprite, you have to pick the correct ones.

  • Link to .capx file (required!):

    dropbox.com/s/zy1v8iy9j4kn0at/UndoGroupReplaceBug.capx

    Steps to reproduce:

    1. Select Group "Group" in Event Sheet 1 (which will select all events)

    2. Right click on the group and select replace object. (Alternatively, you can press 'r' while the group is selected)

    3. Replace Sprite to Sprite2.

    4. Click undo. (Alternatively, you can press ctrl+z)

    Observed result:

    1. Crash (Construct 2 has stopped working)

    2. Condition and Action all disappear without crashing

    3. dropbox.com/s/mybi9byu5gwy3sz/GroupReplaceBug.png

    Expected result:

    Replaced events should be undo.

    Browsers affected:

    Chrome: N.A

    Firefox: N.A

    Internet Explorer: N.A

    Operating system & service pack:

    Windows 7 Home Premium

    SP 1

    Construct 2 version:

    r152 (64bit)

    r154 (64bit)

  • Oh..

    You need to add a instance variable to the "LightObj". Maybe call it "Power"(Type is Number, Default 0).

    So on start of the app, Lights is off (I assume off is frame 0 and on is frame 1)

    So on mouse click,

    check "LightObj" variable "Power" is = 0?

    If yes, set "Power" to 1 and Frame to 1 (its on now).

    else

    If no, set "Power" to 0 and Frame to 0 (its off now).

    something like this.

  • Condition:

    -On left click on "LightObj".

    Action:

    -Set "LightObj" Animation Frame to (Frame Number).

    --"LightObj" Stop Animation.

  • I had some loops inside a plugin to calculate values for all my instances. After which I need the values to be set to the instance variable (which I passed in from the event sheet as a string) at the plugin side.

    Or is there anyway in the edit time I can do a drop down and select the instance variable to be passed as an index like how it is for the Set Values for the instances?

    I can still do it in my event sheet but it will be another loop through the instances.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi all,

    I notice instances[0].instance_var_names is available on preview. However when exported as html5, instance_var_names is undefined. Why is instance_var_names removed after export?

  • Touch is touching will trigger every tick. so it will call the prompt a few times.

    Change your "Touch is touching" to "Touch on touched object". For both Submit and txtPlayerName.

  • In CocoonJS they don't support textbox. So the textbox object is not created. So instead of using textbox.text, change it to PlayerName variable.

    savescores.php?name=" & PlayerName & "&score=" & Score

  • Global Variable PlayerName=""

    Add condition:

    -CocoonJS on input ok

    Add Action:

    -Set PlayerName to CocoonJS.InputText

    then when ajax-ing, use PlayerName.

    Should be what you want.

  • after regenerate obstacle, find path again?