How do I disable an event

0 favourites
  • 6 posts
  • Hy,

    is there an easy way to disable an event? For example I have a collision event. The player collide with the enemy and something happen. I want disable this in a special case. I tried disable collision but in this case the object fall through the solid ground.

    IS there an easy way or do I have to use a variable. If its possible I don't wanna use a variable.

    Thanks

  • I think you do need to create a variable 0 and 1 or some other form of condition to skip your event. Is there a reason you don't want to use a variable?

    You could try setting the condition when it collides with the enemy versus colliding with any solid object.

  • There is no reason don't use a variable. I just thought there could be an easy way. Like disable collision except solid object.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • There is no reason don't use a variable. I just thought there could be an easy way. Like disable collision except solid object.

    Just put what you want on a group and disable/enable it.

  • Just put what you want on a group and disable/enable it.

    Yes, exactly this way I like to do. Thanks!

    Is there also a way to group objects or animations? I wondering if its possible to have layers in a sprite.

  • You can group objects with family. Sprites don't have layers that I know of. Only animations within sprites.

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