How do I incorporate shaking device to make sprite crack

  • Hey all. Let's say I wanted to make a game where the user has to shake their mobile device as many times as possible back and forth within a certain time period in order to make it look like a sprite on screen is breaking/splitting/cracking apart bit by bit more and more the more the user/player shakes their mobile device. How could I achieve this? Could someone provide an example with a capx file?

  • You probably need to find a gyroscope plugin for c2. Im pretty sure there is one out there somewhere on this forum though... keep searching.

    Probably the plugins will give you the possibility te detect the change of the direction of gravity and after every change you destroy the sprite a little bit.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hey Donald. I have been looking online and can't find a gyroscope plugin for construct 2. Are you sure there is one? Could you post a capx with an example illustrating the effect I want to achieve?

  • Apparently Construct 2 already has orientation and accelerometer incorporated in the "touch behaviour"... so no need at all about new plugins

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