c4sp3r89's Recent Forum Activity

  • Maybe using a container?

    scirra.com/manual/150/containers

    -Select your character instance object.

    -At the properties bar, under "Container" click create...

    -Select the array object to be linked to the character instance object.

    -Set the selected array "Global" to "No"

    In this case, everytime a character instance is create, a unique array is also being created and tagged to the instance. To get/use the array of the particular instance, just pick the character instance and you can access the array straight(you don't have to pick the array separately).

  • try something like this.

    Condition:

    -Every x Second

    --for each Mob

    ---Distance(Mob.x,Mob.y,Structure.x,Structure.y) < (Your pixel distance)

    Action:

    -Mob Attack

  • add tile background object into your project.

    add image to the tile background.

    Resize.

  • 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

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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.

c4sp3r89's avatar

c4sp3r89

Member since 19 Jul, 2013

None one is following c4sp3r89 yet!

Trophy Case

  • 11-Year Club
  • Email Verified

Progress

12/44
How to earn trophies