LittleStain's Recent Forum Activity

  • By the way, putting this in a function would even be more convenient..

  • Ok..

    I immediately notice 16 clones of the ghost object, which I don't understand..

    They are probably all in the ghosts family, but wouldn't it be much easier just to use copies instead of clones?

    Than you could pick random ghost instance instead of random family instance..

    I would set the animation to "e"&ghost.instancevariable and just repeat picking a random instance 5 times and changing the variable to ghost.instancevariable+1 and setting the animation to "e"&ghost.instancevariable..

    Maybe adding a boolean to make sure instances aren't picked twice during the repeat..

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Like I said, It would be much easier if you were a bit clearer on what you want..

    I guess it would be as easy as creating a function which can be used on any object clicked, but I haven't seen your events and or capx so it's like shooting in the dark..

    Please share your capx, or create a new capx showing the issue, or make a screenshot of your events, so it is possible to see where the problem is..

  • Positioned audio needs a play at and a listener object..

    Your listener object will most probably be your player sprite and you'll want the audio to play at the object..

    more information is in the manual:

    https://www.scirra.com/manual/109/audio

  • Shouldn't be hard to make..

    How far have you come and what part of the events do you need help with?

  • C2 now has the filechooser object..

    https://www.scirra.com/manual/182/file-chooser

    This might do what you want..

  • One way of doing it:

  • Here you go..

    Added a system scrollto action and set unbounded scrolling for layout1 to true..

  • The answer would lie in how you count the steps in the first place, because the app won't keep running, but maybe there is a way to simulate the app running..

  • From the manual - Browser object..

    On suspended

    On resumed

    Triggered when the page's visibility changes, or when a mobile app is going in to the background or foreground. When invisible or in the background the app is suspended: all events stop running and all audio is muted

    So it seems the app automatically stops all events..

    So it's impossible to keep the app running..

    What you could do is use the system time plugin, to detect at what time the app was suspended and use it again on resumed to make the events happen that would have happened during the suspended time..

  • You could try the debugger..

  • Browser execute javascript should work..

    But it might be better to create a custom plugin for it..

LittleStain's avatar

LittleStain

Member since 26 Apr, 2011

Twitter
LittleStain has 4 followers

Trophy Case

  • 13-Year Club
  • Email Verified

Progress

14/44
How to earn trophies