0 Favourites

How do I prevent collision checks in a menu screen?.

  • Hey all

    I am having trouble trying to figure out why collision checks happen even though all the objects in that layout(main menu) have collisions disabled.

    In my menu i've got the buttons and text to move in and out of the screen as needed when touched. In the Debugger it shows that the collision checks happen when the objects are moving and then back to zero checks when they have reached their destination position.

    I have double checked and all the objects have collisions disabled and i've even put them in a family and disabled collisions on startup. But it's the same.

    I noticed that when i put a new object with frames in them ,the collision checks had increased in count, could it be anything to do with objects with animation frames?.

  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
  • I think you are only disabling collision on all objects on startup. But for new objects, when created, do not have collision disabled. You have to disable them via "on create" event.

  • Oh i didn't know that, but i have my objects on the layout from the start. I don't have a create event for it and i also don't destroy any of them. But i did realize there was no point in having them all at the start but there comes a time in the layout where almost all the objects are on screen together and the collision checks happen.

  • Actually, "on created" event will run for all objects on startup as well. Because when the layout is loaded, these objects are created on the layout immediately.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)
Similar Topics Posts Views Last Post
Unread hot topic
99 10,125
karshinkoff's avatar
karshinkoff
Unread hot topic
102 6,399
Ashley's avatar
Ashley Construct Team Founder
Unread hot topic
56 4,727
MPPlantOfficial's avatar
MPPlantOfficial