Trigger events on object sleep once (for all Obs)

  • HI, firstly sorry if this has been asked, as it seems like a fairly common task but crawling through the forums I couldn't find any.

    I have a bunch of physic objects that I want to trigger events when they stop moving but only once, also when they are moved again I want these same events to trigger again but once again only. I also want to run events local to object and can't seem to work that out.

    I have tried to use Is sleeping which triggers at the right point but does so continuously so I use the default condition Trigger Once but that then only triggers once for all the objects not per object.

    So then I tried to place that inside a System:Every tick > System:For each object with Trigger Once. But then i just the events called over and over.

    Also tried sticking these in a custom function with local variable to control loops but no results.

    Any help is much appreciated.

    Thank you.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Not sure if this is what you want.

    http://dl.dropbox.com/u/84974566/sleeping.capx

    drag the red square btw. <img src="smileys/smiley1.gif" border="0" align="middle">

  • Hi, I can't open that file as I have an order version (Free Version 114) which is the latest I can download. Says your version is 117 is that the premium version?

    Is it possible for you to save out to order versions?

    Sorry to be a pain, I only started playing with construct 2 yesterday and wanted to give it a little more of a play before purchasing if possible ;)

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)