DooMinatioN's Recent Forum Activity

  • Yes, it would be great. Because sometimes C2's event system puzzles me.

  • Problem Description

    Destroying last object in the StartOfLayout event (also tried keyboard events, same) will not destroy the object properly.

    Attach a Capx

    [attachment=0:1av3ge2d][/attachment:1av3ge2d]

    Description of Capx

    Destroys last instance of object type "A" and creates new one. After that tries to move only instance of type "B" next to type "A".

    Steps to Reproduce Bug

    • Run the capx, and you will see it is working as expected.
    • After that, disable the "Wait 0 second" action and run it again.

    Observed Result

    B will be moved next to first instance of A (which supposed to be destroyed).

    (first instance of A is not visible anymore)

    Expected Result

    First instance of A must be destroyed, and B must be move next to newly created instance of A without using "Wait 0 second" action.

    Affected Browsers

    • Chrome: (YES)
    • FireFox: (YES)
    • Internet Explorer: (YES)
    • Node-Webkit: (YES)

    Operating System and Service Pack

    Windows 8.1 x64 with latets updates.

    Construct 2 Version ID

    Construct 2 182 Beta

  • welcome

  • You can workaround using "IsPlaying" event. Just set it to "Trigger once" then, set playback time.

  • Use MouseX(0) and MouseY(0) (or MouseX("Layer 0") and MouseY("Layer 0")) instead of MouseX and MouseY. This is not a bug, this is a feature.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Yes, i have same problem here. If you haven't tried this yet, you can do like below in event sheet 2:

    System->On start of layout | 9patch | Move in front Text

  • Hmm... I was probably misinterpreting the Manual's specification of 'Destroy': Remove the object from the game. I thought that meant the Instance that the Action List of the Event is running against. However, it must refer to the Instances of that Object Type in the Selected Object List. I think it would be good if the Manual was amended to have a more clear and non-ambiguous specification of the 'Destroy' Action. Thanks for your help !

    Welcome, i am happy to help you.

  • This is absolutely normal. Because, without for-each statement you cannot access "Text" object's instances one by one. When you do that -> Text2.Append(Text.Text & newline), C2 will pickup the first instance of the "Text" object (will not itarate through the all instances automagically because you didn't say that to C2) and when you do that -> Text.Destroy(), you say to C2, please destroy all "Text" object's instances (Because, C2 will pickup all "Text" object instances automatically).

  • Can you link me the capx which you are talking about (set at certain resolution). May be i can help.

  • https://www.dropbox.com/s/dvlel2n42zyj2 ... oblem.capx

    I have set only the circle shaped ("Particles") particle's timeout to 10.

    Yes, it goes out the screen.

  • Same result here.

  • > Problem is Browser object. Delete it and do something else in it and it will work. It seams, browser object cannot convert number type to string type (probably a bug in browser plugin).

    >

    You may try to create a text object in this capx and replace the "Browser-Log" by "Text-set text",

    print the instance variable by text, will get the same error message.

    On the other hand, if you try to print other expressions from this overlapped sprite; eg. Animationframe, angle, etc, it will work well. It looks like only instance variable hurts.

    Yes, you are right, it seams like that.

DooMinatioN's avatar

DooMinatioN

Member since 12 Oct, 2012

None one is following DooMinatioN yet!

Trophy Case

  • 12-Year Club
  • RTFM Read the fabulous manual
  • Email Verified

Progress

14/44
How to earn trophies